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
switch
Scala version: 2.13.11
class Wrapper(val self :Int) extends AnyVal final val One = new Wrapper(1) final val Two = new Wrapper(2) (One :Wrapper @switch) match { case One => case Two => case _ => }
Compiler warns:
could not emit switch for @switch annotated match (One :Wrapper @switch) match {
I may not understand something fully, but there doesn't seem to be a reason for this not to work.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Reproduction steps
Scala version: 2.13.11
Problem
Compiler warns:
I may not understand something fully, but there doesn't seem to be a reason for this not to work.
The text was updated successfully, but these errors were encountered: