mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
17 lines
339 B
Java
17 lines
339 B
Java
// "Create missing switch branch 'Sub1'" "true"
|
|
sealed interface I {}
|
|
final class Sub1 implements I {}
|
|
final class Sub2 implements I {}
|
|
|
|
class Test {
|
|
void test(I i) {
|
|
switch (i) {
|
|
case Sub1 sub1 && Math.random() > 0.5:
|
|
break;
|
|
case Sub1 sub1:
|
|
break;
|
|
case Sub2 sub2:
|
|
break;
|
|
}
|
|
}
|
|
} |