Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/deleteSwitchLabel/beforeTotalPatternBranch.java
Andrey.Cherkasov c8e763e188 Provide fix "Remove switch label/branch" for the "'switch' has both a total pattern and a default label" error
IDEA-272573

GitOrigin-RevId: 37262fbd3543791b41513f6f1bea1970c8d3183c
2021-07-27 00:30:31 +00:00

16 lines
336 B
Java

// "Remove switch branch 'Day dd && true'" "true"
enum Day {
MONDAY, TUESDAY, WEDNESDAY
}
class Test {
int foo(Day d) {
switch (d) {
case <caret>Day dd && true:
System.out.println(42);
break;
case default:
System.out.println(13);
}
}
}