[FE 1.0] Prohibit array literals inside nested objects of annotation classes

^KT-39041
^KT-50749 Fixed
This commit is contained in:
Dmitriy Novozhilov
2022-01-12 11:29:10 +03:00
committed by teamcity
parent c1575edca4
commit 139a800ff7
14 changed files with 384 additions and 6 deletions
@@ -1127,6 +1127,18 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
runTest("compiler/testData/diagnostics/tests/annotations/annotationsOnNullableTypes.kt");
}
@Test
@TestMetadata("arrayLiteralInAnnotationCompanion_after.kt")
public void testArrayLiteralInAnnotationCompanion_after() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/arrayLiteralInAnnotationCompanion_after.kt");
}
@Test
@TestMetadata("arrayLiteralInAnnotationCompanion_before.kt")
public void testArrayLiteralInAnnotationCompanion_before() throws Exception {
runTest("compiler/testData/diagnostics/tests/annotations/arrayLiteralInAnnotationCompanion_before.kt");
}
@Test
@TestMetadata("atAnnotationResolve.kt")
public void testAtAnnotationResolve() throws Exception {