JVM: Support instantiation of annotations with vararg parameters
when they are instantiated without argument. #KT-59033 Fixed
This commit is contained in:
+6
@@ -107,6 +107,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
public void testMultiplatformInstantiation() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/instances/multiplatformInstantiation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("varargInAnnotationParameterInstantiation.kt")
|
||||
public void testVarargInAnnotationParameterInstantiation() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/instances/varargInAnnotationParameterInstantiation.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+6
@@ -161,6 +161,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
public void testNestedAnnotationInstances() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/instances/nestedAnnotationInstances.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("varargInAnnotationParameterInstantiation.kt")
|
||||
public void testVarargInAnnotationParameterInstantiation() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/instances/varargInAnnotationParameterInstantiation.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+6
@@ -161,6 +161,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
public void testNestedAnnotationInstances() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/instances/nestedAnnotationInstances.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("varargInAnnotationParameterInstantiation.kt")
|
||||
public void testVarargInAnnotationParameterInstantiation() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/instances/varargInAnnotationParameterInstantiation.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+6
@@ -161,6 +161,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
public void testNestedAnnotationInstances() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/instances/nestedAnnotationInstances.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("varargInAnnotationParameterInstantiation.kt")
|
||||
public void testVarargInAnnotationParameterInstantiation() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/instances/varargInAnnotationParameterInstantiation.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
Reference in New Issue
Block a user