I want to utilize combined open and closed polymor...
# serialization
j
I want to utilize combined open and closed polymorphism, I have this class tree:
Copy code
// in library
@Serializable
interface Base

// in user code
sealed interface All : Base {
   @Serializable
   object A : All

   @Serializable
   data class B(...) : All
}
Ideally, I'd like to register as a subclass only the All type and not every children (A, B, ...). Do I miss something or it is not possible?