Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/splitSwitchBranchWithSeveralCaseValues/afterConstantPatternGuard.java
Andrey.Cherkasov 600967c68e [java-highlighting] Provide Split values of 'switch' branch quick-fix for "Illegal fall-through from/to a pattern" error
IDEA-273885

GitOrigin-RevId: 49ea03660bc8079eb93b76c2ace9264ae1c2cc7a
2022-09-01 09:52:26 +00:00

10 lines
203 B
Java

// "Split values of 'switch' branch" "true-preview"
class C {
void foo(String o) {
switch (o) {
case "42" -> {}
case String s when s.isEmpty() -> {}
}
}
}