mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 18:50:59 +07:00
29 lines
868 B
Java
29 lines
868 B
Java
interface FirstParent {
|
|
|
|
default int doSomething() {
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
interface SecondParent {
|
|
|
|
int doSomething();
|
|
}
|
|
|
|
class <error descr="Class 'FirstSon' must either be declared abstract or implement abstract method 'doSomething()' in 'SecondParent'">FirstSon</error> implements FirstParent, SecondParent {}
|
|
|
|
<error descr="Class 'SecondSon' must either be declared abstract or implement abstract method 'doSomething()' in 'SecondParent'">class <error descr="Class 'SecondSon' must either be declared abstract or implement abstract method 'doSomething()' in 'SecondParent'">SecondSon</error> implements SecondParent, FirstParent</error> {}
|
|
|
|
interface A {
|
|
default int foo() {
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
interface B {
|
|
abstract int foo();
|
|
}
|
|
|
|
interface <error descr="C inherits abstract and default for foo() from types A and B">C</error> extends A, B {
|
|
}
|