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

This commit is contained in:
Anna Kozlova
2016-05-30 20:01:09 +03:00
parent 7627e03439
commit c09e6aa438
4 changed files with 40 additions and 3 deletions
@@ -375,6 +375,10 @@ public class LightAdvHighlightingTest extends LightDaemonAnalyzerTestCase {
doTestFile(BASE_PATH + "/" + getTestName(false) + ".java").checkSymbolNames().test();
}
public void testNestedLocalClasses() throws Exception {
doTest(false, false);
}
public void testInsane() throws IOException {
configureFromFileText("x.java", "class X { \nx_x_x_x\n }");
List<HighlightInfo> infos = highlightErrors();