blob: 766681c413bdc8dc043f88a40c453e6158129426 [file]
class C {
void foo(int n) {
String string = 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>
default -> "";
};
}
}