Tomasz Krakowiak
11/02/2020, 4:07 PM@Serializable
sealed class A(
val foo: String
) {
@Serializable
class B(
foo: String,
val bar: String,
) : A(foo)
}
Getting error "This class is not serializable automatically because it has primary constructor parameters that are not properties"Tomasz Krakowiak
11/02/2020, 4:22 PM@Serializable
sealed class A {
abstract val foo: String
@Serializable
class B(
override val foo: String,
val bar: String,
) : A(foo)
}
For now.