mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-31 04:07:30 +07:00
27 lines
642 B
Java
27 lines
642 B
Java
// "Merge with 'case 1'" "GENERIC_ERROR_OR_WARNING"
|
|
class C {
|
|
void foo(int n, boolean b) {
|
|
String s = switch (n) {
|
|
case 1, 3 -> {
|
|
if (b) {
|
|
break bar("A");
|
|
}
|
|
else {
|
|
bar("z");
|
|
}
|
|
break bar("o");
|
|
}
|
|
case 2 -> {
|
|
if (b) {
|
|
break bar("B");
|
|
}
|
|
else {
|
|
bar("z");
|
|
}
|
|
break bar("o");
|
|
}
|
|
default -> "";
|
|
};
|
|
}
|
|
String bar(String s){}
|
|
} |