mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-04 20:30:42 +07:00
IDEA-123839: abstract&default combination
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import java.util.Iterator;
|
||||
|
||||
interface A4 {
|
||||
default Iterator iterator() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
interface A5 {
|
||||
Iterator iterator();
|
||||
}
|
||||
|
||||
abstract class <error descr="B inherits unrelated defaults for iterator() from types A5 and A4">B</error> implements A5, A4 {}
|
||||
@@ -12,7 +12,7 @@ interface SecondParent {
|
||||
|
||||
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 SecondSon implements SecondParent, FirstParent</error> {}
|
||||
<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() {
|
||||
|
||||
Reference in New Issue
Block a user