-
Notifications
You must be signed in to change notification settings - Fork 626
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
Support generic user-defined classes #1
Comments
The way it can/should work is this in Kotlin < 1.3 (w/o any language changes):
In short, the idea that for generic classes a In Koltin 1.3 we can rollout experimental language support for serialization and redefine
The |
Generic user classes supported (modulo bugs) in 0.3 with syntax described here |
Part #1, serializers, encoders and decoders
It should be possible to define:
and the enjoy type-safe serialization of
Box(42)
andBox("foo")
alike. This is a meta-issue to discuss design problems surrounding type-safe access to instances of serializers for generic classes.The text was updated successfully, but these errors were encountered: