mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
16 lines
338 B
Java
16 lines
338 B
Java
// "Remove unreachable branches" "true-preview"
|
|
class Main {
|
|
void foo(int x) {
|
|
if (x == 42) {
|
|
System.out.println(switch (x) {
|
|
case 42<caret> -> {
|
|
System.out.println("something");
|
|
yield "Six by nine";
|
|
}
|
|
case 100500 -> "and more";
|
|
default -> "and more";
|
|
});
|
|
}
|
|
}
|
|
}
|