Skip to content
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

IR sealed subclasses prototype #272

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft

IR sealed subclasses prototype #272

wants to merge 8 commits into from

Conversation

ZacSweers
Copy link
Owner

No description provided.

@ZacSweers
Copy link
Owner Author

Proposing this as a contribution to JetBrains-Research/reflekt#71, would productionize it further to pick the single-arg listOf() call if there's only one subtype, emptyList for no subtypes, etc etc.

One open question would be whether or not to support this on untyped KClass types, like KClass<*> or KClass<Any>. I suspect they'd all fall under the general category of error handling where we say the type visible to the compiler is not sealed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant