5ba1b36796
- synthetic constructor became internal for final classes - write$Self became internal for final classes Resolves https://github.com/Kotlin/kotlinx.serialization/issues/2209 Merge-request: KT-MR-9068 Merged-by: Sergey Shanshin <Sergey.Shanshin@jetbrains.com>
20 lines
504 B
Kotlin
Vendored
20 lines
504 B
Kotlin
Vendored
// CURIOUS_ABOUT: deserialize, write$Self, write$Self$main, childSerializers, <init>, <clinit>, invoke, serializer
|
|
// WITH_STDLIB
|
|
|
|
import kotlinx.serialization.*
|
|
|
|
@Serializable
|
|
sealed interface X {
|
|
fun def() {}
|
|
}
|
|
|
|
// do not forget to update this test with custom serialinfo annotation when serialization 1.3.0 is released
|
|
@Serializable
|
|
sealed class Result: X {
|
|
@Serializable class OK(val s: String): Result()
|
|
@Serializable object Err: Result()
|
|
}
|
|
|
|
@Serializable
|
|
class Container(val r: Result)
|