mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-18 04:21:24 +07:00
report unrelated defaults when 2 default methods provided; abstract/default otherwise (IDEA-141714)
This commit is contained in:
@@ -10,4 +10,4 @@ interface A5 {
|
||||
Iterator iterator();
|
||||
}
|
||||
|
||||
abstract class <error descr="B inherits unrelated defaults for iterator() from types A5 and A4">B</error> implements A5, A4 {}
|
||||
abstract class <error descr="B inherits abstract and default for iterator() from types A5 and A4">B</error> implements A5, A4 {}
|
||||
@@ -1,3 +1,14 @@
|
||||
interface B { default void foo() {} }
|
||||
interface C { default void foo() {} }
|
||||
class <error descr="D inherits unrelated defaults for foo() from types B and C">D</error> implements B, C {}
|
||||
|
||||
interface E {
|
||||
default void foo() {
|
||||
}
|
||||
}
|
||||
|
||||
interface F {
|
||||
void foo();
|
||||
}
|
||||
|
||||
interface <error descr="G inherits abstract and default for foo() from types E and F">G</error> extends E, F {}
|
||||
|
||||
@@ -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 <error descr="SecondSon inherits unrelated defaults for doSomething() from types SecondParent and FirstParent">SecondSon</error> 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 abstract and default 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