mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
12 lines
249 B
Java
12 lines
249 B
Java
// "Remove unreachable branches" "true-preview"
|
|
class Test {
|
|
|
|
int test(Number n) {
|
|
n = 1;
|
|
return 1 + switch (n) {
|
|
case <caret>Integer i when i == 1 -> i;
|
|
case Long l -> l.intValue();
|
|
default -> 1;
|
|
};
|
|
}
|
|
} |