Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/deleteSwitchLabel/afterUnwrapExpression8.java
Andrey.Cherkasov d4573c53c8 [java-inspections] "Remove unreachable branches" quick-fix breaks code on switch expression
IDEA-296911

GitOrigin-RevId: 1fdfb95aa6396476b40bf0d7be62a1617e70f858
2022-06-28 03:52:04 +00:00

15 lines
293 B
Java

// "Remove unreachable branches" "true"
class Main {
void foo(int x) {
if (x == 42) {
System.out.println(switch (x) {
case 42 -> {
System.out.println("something");
yield "Six by nine";
}
case default -> "and more";
});
}
}
}