Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/createMissingSealedClassSwitchBranches/beforeDeepSealedHierarchy.java
Andrey.Cherkasov 086e760e08 [java-highlighting] Fix bug about applying "Create missing switch branch" fix produces a red code
(IDEA-278884)

GitOrigin-RevId: 690fa0ae782ee065b35e91f6d1e0df846bd9369f
2021-11-11 07:03:04 +00:00

17 lines
333 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 {}
public class Test {
void test(A a) {
switch (a<caret>) {
case Aaa x -> {
}
case Aab x -> {
}
}
}
}