isLocalClass should work for nested local classes (IDEA-156777)

This commit is contained in:
Anna Kozlova
2016-05-30 19:32:38 +03:00
parent 7627e03439
commit c09e6aa438
4 changed files with 40 additions and 3 deletions

View File

@@ -93,12 +93,12 @@ public class a {
}
void ff() {
class inn {
<error descr="Inner classes cannot have static declarations">interface i</error> {}
<error descr="Interface not allowed here">interface i</error> {}
}
}
Object o = new Runnable() {
<error descr="Inner classes cannot have static declarations">interface i</error> {}
<error descr="Interface not allowed here">interface i</error> {}
public void run() {}
};
}