blob: a07b0c5d6d1df30157549d086a90306c8ca38b1a [file]
class C {
void foo(int n) {
switch (n) {
case 1 -> throw new IllegalArgumentException();
case 2 -> throw new IllegalStateException();
case 3 -> <weak_warning descr="Duplicate branch in 'switch'">throw new IllegalArgumentException();</weak_warning>
}
}
}