-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Polymorphism is not supported #3
Comments
Nice, I got it. Will try to implement during week |
I implemented it like in kotlinx.serialization.json by "classDiscriminator"(name of the class descriptor property in polymorphic serialization.) You can look at it in tests |
Thank you |
I get this stacktrace when I try to serialize a inherited class (as described here https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/polymorphism.md )
java.lang.ClassCastException: kotlinx.serialization.UnionKind$POLYMORPHIC cannot be cast to kotlinx.serialization.StructureKind
The text was updated successfully, but these errors were encountered: