Jan Skrasek
09/11/2022, 12:45 PM// 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?