Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlightingPatternsInSwitch/HighlighterForPatternVariableInLocalVariable.java
Ilyas Selimov cf1b781ca9 IDEA-273958 - fixed declaration scope for patterns in the scopes that differ from switch
GitOrigin-RevId: 8c8a835678a6c1de640e34277914b61e1542a1ab
2021-07-30 09:08:34 +00:00

6 lines
144 B
Java

class Main {
void test(Object o) {
boolean b = o instanceof ((String <caret>s) && s.length() > 1);
s = "fsfsdfsd"; // unresolved
}
}