mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
- fix for completion - fix for error highlighting GitOrigin-RevId: 337131aab1bc7473711ffc078175b5adba34f30d
27 lines
542 B
Java
27 lines
542 B
Java
public class SealedWithLocalAndAnonymousClasses {
|
|
|
|
sealed interface I {
|
|
final class C1 implements I {
|
|
}
|
|
|
|
static void test() {
|
|
final class TT implements <error descr="Local classes must not extend sealed classes">I</error> {
|
|
|
|
}
|
|
|
|
I i2 = new <error descr="Anonymous classes must not extend sealed classes">I</error>() {
|
|
};
|
|
|
|
I i = getI();
|
|
switch (i) {
|
|
case C1 c1 -> {
|
|
System.out.println("1");
|
|
}
|
|
}
|
|
}
|
|
|
|
private static I getI() {
|
|
return null;
|
|
}
|
|
}
|
|
} |