Generate container class for repeatable annotations

#KT-12794
This commit is contained in:
Alexander Udalov
2021-07-20 23:02:38 +02:00
parent 87130edfa2
commit 92a73d7636
21 changed files with 652 additions and 42 deletions
@@ -516,6 +516,18 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
public void testJvmRepeatableKotlinAnnotation() throws Exception {
runTest("compiler/testData/codegen/box/annotations/repeatable/jvmRepeatableKotlinAnnotation.kt");
}
@Test
@TestMetadata("kotlinAnnotation.kt")
public void testKotlinAnnotation() throws Exception {
runTest("compiler/testData/codegen/box/annotations/repeatable/kotlinAnnotation.kt");
}
@Test
@TestMetadata("kotlinAnnotationWithBothRepeatables.kt")
public void testKotlinAnnotationWithBothRepeatables() throws Exception {
runTest("compiler/testData/codegen/box/annotations/repeatable/kotlinAnnotationWithBothRepeatables.kt");
}
}
@Nested
@@ -439,11 +439,41 @@ public class IrBytecodeListingTestGenerated extends AbstractIrBytecodeListingTes
runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/javaAnnotation.kt");
}
@Test
@TestMetadata("kotlinAnnotation.kt")
public void testKotlinAnnotation() throws Exception {
runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/kotlinAnnotation.kt");
}
@Test
@TestMetadata("kotlinAnnotationWithBothRepeatables.kt")
public void testKotlinAnnotationWithBothRepeatables() throws Exception {
runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/kotlinAnnotationWithBothRepeatables.kt");
}
@Test
@TestMetadata("kotlinSpecificTargets.kt")
public void testKotlinSpecificTargets() throws Exception {
runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/kotlinSpecificTargets.kt");
}
@Test
@TestMetadata("multipleRepeatableOrder.kt")
public void testMultipleRepeatableOrder() throws Exception {
runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/multipleRepeatableOrder.kt");
}
@Test
@TestMetadata("nonRepeatedAnnotationWithItsContainer.kt")
public void testNonRepeatedAnnotationWithItsContainer() throws Exception {
runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/nonRepeatedAnnotationWithItsContainer.kt");
}
@Test
@TestMetadata("retentionAndTarget.kt")
public void testRetentionAndTarget() throws Exception {
runTest("compiler/testData/codegen/bytecodeListing/annotations/repeatable/retentionAndTarget.kt");
}
}
}