mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-05 19:52:07 +07:00
10 lines
225 B
Java
10 lines
225 B
Java
class C {
|
|
void foo(int n) {
|
|
switch (n) {
|
|
case 1 -> bar("A");
|
|
case 2 -> bar("B");
|
|
case 3 -> <weak_warning descr="Duplicate branch in 'switch'">bar("A");</weak_warning>
|
|
}
|
|
}
|
|
void bar(String s){}
|
|
} |