-
Notifications
You must be signed in to change notification settings - Fork 359
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
Sealed inline classes #318
Comments
The rules that govern which types are allowed as representations for sealed inline classes allow to have a For example, this is allowed:
However, if This makes adding a superinterface to a class a source-breaking change, in case some client code uses them as representations of sealed inline classes in different child subclasses. Also, if
will start to incorrectly be |
From the restrictions, |
This issue is for discussion of the proposal to introduce sealed inline classes in Kotlin.
Proposal PR #312
The text was updated successfully, but these errors were encountered: