Ian
10/09/2017, 7:44 PMException in thread "main" kotlin.TypeCastException: null cannot be cast to non-null type kotlinx.serialization.KSerializer<T>
at kotlinx.serialization.SerializationKt.serializer(Serialization.kt:23)
at uprizer.pentius.MainKt.main(main.kt:29)
The code that throws it is:
println(Companion.stringify(Payment(Instant.now(), 15, 24, 0.12354)))
I have added @Serializable
to the top-level sealed class. What am I doing wrong here?