We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Behold my beautiful enum.
sealed trait Pretty { self: Color => } sealed trait Dull { self: Color => } enum Color { case Pink extends Color with Pretty case Red extends Color with Dull } def describe(c: Color) = c match { case Color.Pink => "Amazing!" case Color.Red => "Yawn..." }
8 |def describe(c: Color) = c match { | ^ | match may not be exhaustive. | | It would fail on pattern case: _: Color
No warning.
The text was updated successfully, but these errors were encountered:
Fix scala#8203: handle intersection type in parent registration
3c9f377
An enum value may have the type `A & B`, in such cases we need to register for both `A` and `B`.
Merge pull request #8206 from dotty-staging/fix-8203
04d5068
Fix #8203: handle intersection type in parent registration
liufengyun
Successfully merging a pull request may close this issue.
minimized code
Behold my beautiful enum.
Compilation output
expectation
No warning.
The text was updated successfully, but these errors were encountered: