mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-23 16:20:55 +07:00
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";
|
|
});
|
|
}
|
|
}
|
|
}
|