mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
18 lines
345 B
Java
18 lines
345 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) {
|
|
case Sub2 sub2:
|
|
break;
|
|
case Sub1 sub1:
|
|
break;
|
|
case J j:
|
|
break;
|
|
}
|
|
}
|
|
} |