blob: 6ba89babefcd50ec090045c6f0bb990f7f2d9c54 [file]
// "Wrap labeled rule's statement with code block" "GENERIC_ERROR_OR_WARNING"
class C {
String foo(int n) {
return switch (n) {
case 1 -> /*1*/ {
throw new RuntimeException(); /*2*/
}
default -> "b";
};
}
}