Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/convertSwitchToIf/beforeLocalEnum.java
Alexandr Suhinin 8496dd3b7f IDEA-270441 IJ-CR-12027 convert switch to if: fix "null" class name for local Enums
GitOrigin-RevId: bd6d592522e497f7897c92799333630d611dc6e1
2021-07-20 09:42:18 +00:00

13 lines
228 B
Java

// "Replace 'switch' with 'if'" "true"
class Test {
void test() {
enum P {
s;
}
P p = null;
<caret>switch (p) {
case s -> {}
default -> {}
}
}
}