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
Consider this code:
switch (r) { case Rectangle r1 when (r instanceof (Rectangle(ColoredPoint upperLeft2, ColoredPoint lowerRight) r2)): System.out.println(r2); // error reported here break; default : break; }
This code should be allowed but ecj reports an error. Looks like the pattern variable doesn't make it to the case statement and hence to the block.
The text was updated successfully, but these errors were encountered:
[19] Pattern variable declared in a guard containing instanceof
e5a95d0
expression is not visible in the case block eclipse-jdt#371
7649d61
d7e2476
expression is not visible in the case block #371
@jarthana - is this still open ? Looks like it is fixed by #372 ??
Sorry, something went wrong.
Yes, this should be closed.
c013ee2
jarthana
No branches or pull requests
Consider this code:
This code should be allowed but ecj reports an error. Looks like the pattern variable doesn't make it to the case statement and hence to the block.
The text was updated successfully, but these errors were encountered: