Files
openide/java/java-tests/testData/codeInsight/gotoDeclaration/PatternMatchingWithParensAroundReference.java
Nikita Eshkeev a7100b4e2e [java][switch resolve] IDEA-273929 Good code red - cannot resolve symbol in switch statement group
The resolver used to fail when a case label element is parenthesized. The patch fixes this problem by stripping parens from a case element if necessary

GitOrigin-RevId: de2113905ccabcc7c675c94c320cb2b26fccf487
2021-08-02 22:50:16 +00:00

11 lines
161 B
Java

class Main {
final int i = 2;
void f(Object obj) {
switch (obj) {
case Integer i, ((i<caret>)):
System.out.println(i);
}
}
}
}