mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
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());
|
|
}
|
|
}
|
|
} |