-
Notifications
You must be signed in to change notification settings - Fork 285
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
codegen-java/kotlin: Support generating sealed classes #803
Comments
Without a
|
I think the conclusion is that moving forward with this feature would require a |
Yeah; I think that's right |
How about reserving the keyword |
I'm okay with that! @stackoverflow, @holzensp: thoughts? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be very nice to generate sealed Java/Kotlin classes whenever possible. This would improve code comprehension, pattern matching, and the IDE experience.
Potential solutions:
At a minimum, this would require passing all Pkl modules at once to Java/KotlinCodeGenerator so that it can check if a class is subclassed in another module. Currently, Java/KotlinCodeGenerator only accepts a single module whereas CliJava/KotlinCodeGenerator accepts multiple.
The text was updated successfully, but these errors were encountered: