Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/createMissingSealedClassSwitchBranches/afterAbstractSelectorNonEmptySwitch.java
Andrey.Cherkasov c977930e50 [java-highlighting] Stabilize the order of missing branches
GitOrigin-RevId: cca86a5d95906306a0a4c68b976e8d6950e3cb72
2022-05-31 12:47:41 +00:00

19 lines
353 B
Java

// "Create missing switch branch 'Ab'" "true"
sealed interface A {}
sealed interface Aa extends A {}
final class Aaa implements Aa {}
final class Aab implements Aa {}
final class Ab implements A {}
class Test {
void test(A a) {
switch (a) {
case Aaa x -> {
}
case Aab x -> {
}
case Ab ab -> {
}
}
}
}