mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-03 18:48:28 +07:00
GitOrigin-RevId: f6146f9e06b0f618f1512b7b864532e126d7beda
24 lines
391 B
Java
24 lines
391 B
Java
class Outer {
|
|
Outer(int i) {}
|
|
int hello() {
|
|
return 1;
|
|
}
|
|
|
|
class Inner extends Outer {
|
|
Inner() {
|
|
super(<error descr="Cannot call 'Outer.hello()' before superclass constructor is called">hello</error>());
|
|
}
|
|
}
|
|
}
|
|
class Outer2 {
|
|
Outer2(int i) {}
|
|
private int hello() {
|
|
return 1;
|
|
}
|
|
|
|
class Inner extends Outer2 {
|
|
Inner() {
|
|
super(hello());
|
|
}
|
|
}
|
|
} |