-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Enum members and union types #2711
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
Comments
What's wrong? You should write type Fine = Trees | Errors
type NotFine0 = Trees | Incomplete.type
type NotFine1 = Trees | Errors | Incomplete.type
type NotFine2 = Trees | Errors | Exit.type |
@sjrd - singleton types are not allowed in union types currently |
oh god... please tell me that's going to change at some point. |
@japgolly - there was some breakage a while back, where at the time, we decided that fixing the breakage was more important than allowing singleton types in unions. I'm hoping that we can get back to enabling this again, but so far other things have taken priority. If you're interested in helping out on this, we're more than happy to help you get started :) |
This appears to be a special case of #1551 so closing this one in favor of the other. |
I'm assuming this is due to
Incomplete
andExit
getting desugared into:ping @odersky
The text was updated successfully, but these errors were encountered: