mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 10:51:06 +07:00
method refs: super::abstract method
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user