Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlightingPatternsInSwitch/HighlighterForPatternVariableInIfElse.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

11 lines
217 B
Java

class Main {
void test(Object o) {
if (!(o instanceof ((String <caret>s) && s.length() > 1))) {
s = "fsfsdfsd"; // unresolved
}
else {
s = "fsfsdfsd";
System.out.println(s);
}
}
}