method refs: super::abstract method

This commit is contained in:
anna
2013-02-26 19:48:05 +01:00
parent 2d1f7206ce
commit 2ceabcf7ba
3 changed files with 37 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
class Test {
interface I {
int _();
}
static abstract class Parent {
abstract int foo() ;
}
static abstract class Child extends Parent {
abstract int foo() ;
void test() {
I s = super::<error descr="Abstract method 'foo' cannot be accessed directly">foo</error>;
I s1 = this::foo;
Parent sup = null;
I s2 = sup::foo;
}
}
}