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

10 lines
237 B
Java

class Main {
void test(Object o) {
switch (o) {
case ((Long <caret>l) && l != null) ->
System.out.println("Long: " + l);
default ->
System.out.println();
}
}
}