blob: 9cea47800df33c0b7dbd2f7f6bd7842f0d0ae856 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
interface FirstParent {
default int doSomething() {
return 1;
}
}
interface SecondParent {
int doSomething();
}
class <error descr="Class 'SecondParent' 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="SecondSon inherits unrelated defaults for doSomething() from types SecondParent and FirstParent">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 {
}
|