Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/deleteSwitchLabel/beforeUnwrapPatternConflict7.java
Ilyas Selimov c3a56381e7 java - unwrap switch label fix: support used pattern variables in the switch
GitOrigin-RevId: 47387f009a92a5e17846da4fa131f754234d7cf6
2021-11-16 11:11:07 +00:00

13 lines
271 B
Java

// "Remove unreachable branches" "true"
class Test {
int test(Number n) {
n = 1;
System.out.println(switch (n) {
case Long l -> l.intValue();
case <caret>Object i -> (int)i;
} + 10);
int i = 5;
System.out.println(i);
}
}