mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 08:50:57 +07:00
20 lines
437 B
Java
20 lines
437 B
Java
class Test {
|
|
interface I {
|
|
int m();
|
|
}
|
|
|
|
static abstract class Parent {
|
|
abstract int foo() ;
|
|
}
|
|
|
|
static abstract class Child extends Parent {
|
|
abstract int foo() ;
|
|
void test() {
|
|
I s = <error descr="Abstract method 'foo' cannot be accessed directly">super::foo</error>;
|
|
I s1 = this::foo;
|
|
|
|
Parent sup = null;
|
|
I s2 = sup::foo;
|
|
}
|
|
}
|
|
} |