mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 13:39:36 +07:00
24 lines
557 B
Java
24 lines
557 B
Java
class C implements A {
|
|
C(A a) {}
|
|
}
|
|
|
|
interface A {
|
|
A a = new C(<error descr="'A.this' cannot be referenced from a static context">this</error>);
|
|
A a1 = new C(<error descr="'A.this' cannot be referenced from a static context">this</error>){};
|
|
|
|
class B {
|
|
A foo() {
|
|
return <error descr="'A.this' cannot be referenced from a static context">A.this</error>;
|
|
}
|
|
|
|
B foo1() {
|
|
return B.this;
|
|
}
|
|
|
|
class D {
|
|
B f() {
|
|
return B.this;
|
|
}
|
|
}
|
|
}
|
|
} |