mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-27 13:50:53 +07:00
12 lines
306 B
Java
12 lines
306 B
Java
// "Remove unreachable branches" "true-preview"
|
|
class Test {
|
|
void test(Number n) {
|
|
n = 1;
|
|
switch (n) {
|
|
case <caret>Integer i when i == 1 -> System.out.println(i);
|
|
case Long s -> System.out.println(s);
|
|
default -> System.out.println();
|
|
}
|
|
Object i = "";
|
|
}
|
|
} |