ensure static method inherit default if container classes are inheritors

This commit is contained in:
Anna Kozlova
2015-05-17 17:39:18 +02:00
parent e9cfd2dd0c
commit 4e9f79945c
3 changed files with 12 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
interface A {
default void foo(){}
}
interface B extends A {
<error descr="Static method 'foo()' in 'B' cannot override instance method 'foo()' in 'A'">static void foo()</error>{}
}