```sealed interface IA { @Serializable dat...
# serialization
a
Copy code
sealed interface IA {
    @Serializable
    data class B(val b: Int) : IA
}


@Serializable
data class C(val ia: IA, val str:String)
why is C is Serializable if IA is not necessarily? is there a way to ensure that it won't be compiling?
you should be able to write
Copy code
@Serializable sealed interface
but I'm not sure there's a way to prevent the implicit
@Polymorphic ia: IA