Java 8 style of qualified super expressions

This commit is contained in:
Roman Shevchenko
2012-05-28 18:56:48 +04:00
parent fb035a0df6
commit bacbe8edf2
5 changed files with 126 additions and 74 deletions
@@ -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();
}
}