mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-29 01:53:51 +07:00
11 lines
284 B
Java
11 lines
284 B
Java
class C {
|
|
void foo(int n) {
|
|
String string = switch (n) {
|
|
case 1 -> bar("A");
|
|
case 2 -> bar("B");
|
|
case 3 -> <weak_warning descr="Duplicate branch in 'switch'">bar("A");</weak_warning>
|
|
default -> "";
|
|
};
|
|
}
|
|
String bar(String s){return s;}
|
|
} |