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