blob: ba3c27bb6a4b10e41b27f5dbaa0a1fef8d719c8e [file]
// "Delete redundant 'switch' branch" "GENERIC_ERROR_OR_WARNING"
class C {
void foo(int n) {
switch (n) {
case 2 -> {
bar("B");
}
default -> {
/*comment 2*/
bar("A");
/*comment 1*/
}
case 1 -> {
/*comment 2*/
bar("A");<caret>
/*comment 3*/
}
}
}
void bar(String s){}
}