mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Java 8 style of qualified super expressions
This commit is contained in:
+13
@@ -19,7 +19,20 @@ class C {
|
||||
void m() default { }
|
||||
}
|
||||
|
||||
interface II extends I {
|
||||
void m() default { I.super.m(); }
|
||||
void ma();
|
||||
}
|
||||
|
||||
void test() {
|
||||
new I(){}.m();
|
||||
|
||||
new II() {
|
||||
public void ma() {
|
||||
<error descr="'C.I' is not an enclosing class">I.super</error>.m();
|
||||
II.super.m();
|
||||
<error descr="Abstract method 'ma()' cannot be accessed directly">II.super.ma()</error>;
|
||||
}
|
||||
}.m();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user