mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
IDEA-115790 default methods cannot override Object methods
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
interface A {
|
||||
default String <error descr="Default method toString overrides a member of java.lang.Object">toString</error>() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
+1
@@ -31,6 +31,7 @@ public class Interface8MethodsHighlightingTest extends LightDaemonAnalyzerTestCa
|
||||
public void testCyclicSubstitutor() { doTest(false, false); }
|
||||
public void testThisAccessibility() { doTest(false, false); }
|
||||
public void testStaticMethodCalls() { doTest(false, false); }
|
||||
public void testDefaultMethodOverrideEquivalentObject() { doTest(false, false); }
|
||||
|
||||
private void doTest() {
|
||||
doTest(false, false);
|
||||
|
||||
Reference in New Issue
Block a user