mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-20 11:36:16 +07:00
IDEA-115789 an interface inheriting a default method and an abstract method
This commit is contained in:
+14
-1
@@ -12,4 +12,17 @@ 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 SecondSon 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 {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user