-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Wrong warning on matching union types #16899
Comments
Agree this is a bug, and significant enough that I hope to see it get attention. This is fairly basic stuff, and as the report above shows, there are some forms of it that do already work. And it came up on Discord today, so that's a second user who hit it. I see there was an attempt to fix it which is now abandoned. I also see @dwijnand was interested enough to comment on the PR. Dale, not sure your remaining level of interest. |
Also encountered this one. It's a little annoying. Working on a fix. |
Compiler version
3.2.2
Minimized code
Output
Expectation
No warning. Unset is sealed trait and therefore this match should be exhaustive. For example,
v: String|Option[Int]
compiles without warning.The text was updated successfully, but these errors were encountered: