Nested classes are no more allowed inside any anonymous objects or local classes #KT-13510 Fixed

(cherry picked from commit 5c3ec6c)
This commit is contained in:
Mikhail Glukhikh
2016-08-25 19:48:57 +03:00
committed by Mikhail Glukhikh
parent f8039249c6
commit cd717467f0
5 changed files with 30 additions and 2 deletions
@@ -12510,6 +12510,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("nestedClassInAnonymousObject.kt")
public void testNestedClassInAnonymousObject() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/objects/nestedClassInAnonymousObject.kt");
doTest(fileName);
}
@TestMetadata("objectInsideFun.kt")
public void testObjectInsideFun() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/objects/objectInsideFun.kt");