forbid private classes in java 9 interfaces (IDEA-167121)

This commit is contained in:
Anna Kozlova
2017-01-26 19:02:35 +03:00
parent f6ef33861c
commit 3096de1332
2 changed files with 15 additions and 6 deletions
@@ -12,4 +12,12 @@ interface C {
interface D {
private static void m() {}
}
interface E {
<error descr="Illegal combination of modifiers: 'private' and 'public'">private</error> class E1 {}
}
interface F {
<error descr="Modifier 'private' not allowed here">private</error> int m = 0;
}