Report error on class named Container inside repeatable annotation

#KT-12794
 #KT-47971
This commit is contained in:
Alexander Udalov
2021-07-30 02:13:57 +02:00
parent 5f7803f2db
commit 847c58d574
13 changed files with 297 additions and 8 deletions
@@ -2177,6 +2177,18 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
public void testKotlinRepeatable_1_6() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/repeatable/kotlinRepeatable_1_6.kt");
}
@Test
@TestMetadata("nestedClassContainer_1_5.kt")
public void testNestedClassContainer_1_5() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/repeatable/nestedClassContainer_1_5.kt");
}
@Test
@TestMetadata("nestedClassContainer_1_6.kt")
public void testNestedClassContainer_1_6() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/repeatable/nestedClassContainer_1_6.kt");
}
}
@Nested
@@ -2177,6 +2177,18 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
public void testKotlinRepeatable_1_6() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/repeatable/kotlinRepeatable_1_6.kt");
}
@Test
@TestMetadata("nestedClassContainer_1_5.kt")
public void testNestedClassContainer_1_5() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/repeatable/nestedClassContainer_1_5.kt");
}
@Test
@TestMetadata("nestedClassContainer_1_6.kt")
public void testNestedClassContainer_1_6() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/repeatable/nestedClassContainer_1_6.kt");
}
}
@Nested