mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-04 12:03:57 +07:00
GitOrigin-RevId: 72f8e7f6c9080db7cb0b89c0ed876eb949171e8f
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";
|
|
});
|
|
}
|
|
}
|
|
}
|