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
Test case: (project should be built at source level 21) (22+ works ok)
public class X { static void foo(Object o) { switch (o) { case Character c, Integer i: // Compile-time error break; default: break; } } }
We report 3 errors on line 4:
- Named pattern variables are not allowed here - Named pattern variables are not allowed here - Cannot mix pattern with other case labels
The last one i.e Cannot mix pattern with other case labels is wrong.
Cannot mix pattern with other case labels
The text was updated successfully, but these errors were encountered:
a589ad2
srikanth-sankaran
Successfully merging a pull request may close this issue.
Test case: (project should be built at source level 21) (22+ works ok)
We report 3 errors on line 4:
The last one i.e
Cannot mix pattern with other case labels
is wrong.The text was updated successfully, but these errors were encountered: