mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
forbid native in interfaces (IDEA-140491)
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
interface A {
|
||||
default <error descr="Modifier 'native' not allowed here">native</error> void m(){}
|
||||
static <error descr="Modifier 'native' not allowed here">native</error> void m1(){}
|
||||
<error descr="Modifier 'native' not allowed here">native</error> void m2();
|
||||
}
|
||||
+1
@@ -36,6 +36,7 @@ public class Interface8MethodsHighlightingTest extends LightCodeInsightFixtureTe
|
||||
public void testStaticMethodCalls() { doTest(false, false); }
|
||||
public void testStaticMethodCallsAndOverloadResolution() { doTest(false, false); }
|
||||
public void testDefaultMethodOverrideEquivalentObject() { doTest(false, false); }
|
||||
public void testModifierNativeInInterface() { doTest(false, false); }
|
||||
public void testStaticMethods() { doTest(false, false); }
|
||||
public void testFinalStaticDefaultMethods() { doTest(false, false); }
|
||||
public void testIDEA122720() { doTest(false, false); }
|
||||
|
||||
Reference in New Issue
Block a user