Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/moveSwitchBranchUp/beforeLabeledRule.java
T
2021-10-05 22:24:08 +00:00

11 lines
241 B
Java

// "Move switch branch 'Integer i' before 'Number n'" "true"
class Main {
void test(Object o) {
int x = switch (o) {
case Number n -> 2;
case String s -> 3;
case Integer i<caret> -> 1;
default -> 4;
};
}
}