blob: 92ec5ac7753eb1980d7d639b885ad859877d6453 [file]
// "Merge with 'case 1'" "GENERIC_ERROR_OR_WARNING"
class C {
void foo(int n) {
String s = switch (n) {
case 1 -> throw new IllegalArgumentException("A");
case 2 -> throw new IllegalStateException("A");
case 3 -> <caret>throw new IllegalArgumentException("A");
default -> "";
};
}
}