Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/createMissingSealedClassSwitchBranches/beforeDominatingPatternPresent.java
T
2021-11-11 07:03:04 +00:00

16 lines
307 B
Java

// "Create missing switch branch 'Sub1'" "true"
sealed interface I {}
sealed interface J extends I {}
final class Sub1 implements I, J {}
final class Sub2 implements I {}
class Test {
void test(I i) {
switch (i<caret>) {
case Sub2 sub2:
break;
case J j:
break;
}
}
}