mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-04 15:44:48 +07:00
GitOrigin-RevId: d69adf33903bda7bb28090145fc57b690438281b
15 lines
298 B
Java
15 lines
298 B
Java
// "Remove unreachable branches" "true-preview"
|
|
class Main {
|
|
void foo(int x) {
|
|
if (x == 42) {
|
|
System.out.println(switch (x) {
|
|
case 42 -> {
|
|
System.out.println("something");
|
|
yield "Six by nine";
|
|
}
|
|
default -> "and more";
|
|
});
|
|
}
|
|
}
|
|
}
|