mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 13:39:36 +07:00
25 lines
535 B
Java
25 lines
535 B
Java
class Y {
|
|
int size = 4;
|
|
}
|
|
|
|
class Z extends Y {
|
|
class I {
|
|
void foo() {
|
|
System.out.println("size = " + <error descr="'Y' is not an enclosing class">Y.this</error>.size); // illegal construct
|
|
}
|
|
}
|
|
}
|
|
|
|
class R {
|
|
public void smu() {
|
|
System.out.println(<error descr="'Z' is not an enclosing class">Z.super</error>.toString());
|
|
}
|
|
}
|
|
|
|
class W {
|
|
static String some = "";
|
|
static void m() {
|
|
synchronized (<error descr="Class name expected here">some</error>.this) { }
|
|
}
|
|
}
|