You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Serializable
sealed class Foo {
@Serializable
data class Bar(val a: Int) : Foo()
}
@Test
fun testFoo() {
val json = Json.toJson(Foo.Bar(1))
println(Json.fromJson<Foo>(json))
println(Json.fromJson<Foo>(json))
}