forbid native in interfaces (IDEA-140491)

This commit is contained in:
Anna Kozlova
2015-05-20 12:03:04 +02:00
parent f53bb94115
commit 2fc7821d06
3 changed files with 10 additions and 0 deletions

View File

@@ -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();
}