[FIR2IR] Don't copy default value to annotation call with vararg parameter

This aligns the behavior with K1 and fixes an issue when the default
value was deserialized as FirExpressionStub leading to an exception
in FIR2IR when trying to convert it to an IR expression.

#KT-60120 Fixed
#KT-59610 Fixed
This commit is contained in:
Kirill Rakhman
2023-07-05 15:57:45 +02:00
committed by Space Team
parent 7c1c01156f
commit feed740415
20 changed files with 609 additions and 4 deletions
@@ -71,6 +71,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/annotations/annotationTargets.kt");
}
@Test
@TestMetadata("annotationWithDefaultArgInDifferentModule.kt")
public void testAnnotationWithDefaultArgInDifferentModule() throws Exception {
runTest("compiler/testData/codegen/box/annotations/annotationWithDefaultArgInDifferentModule.kt");
}
@Test
@TestMetadata("annotationWithKotlinProperty.kt")
public void testAnnotationWithKotlinProperty() throws Exception {
@@ -83,6 +83,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/annotations/annotationTargets.kt");
}
@Test
@TestMetadata("annotationWithDefaultArgInDifferentModule.kt")
public void testAnnotationWithDefaultArgInDifferentModule() throws Exception {
runTest("compiler/testData/codegen/box/annotations/annotationWithDefaultArgInDifferentModule.kt");
}
@Test
@TestMetadata("annotationWithKotlinProperty.kt")
public void testAnnotationWithKotlinProperty() throws Exception {
@@ -83,6 +83,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
runTest("compiler/testData/codegen/box/annotations/annotationTargets.kt");
}
@Test
@TestMetadata("annotationWithDefaultArgInDifferentModule.kt")
public void testAnnotationWithDefaultArgInDifferentModule() throws Exception {
runTest("compiler/testData/codegen/box/annotations/annotationWithDefaultArgInDifferentModule.kt");
}
@Test
@TestMetadata("annotationWithKotlinProperty.kt")
public void testAnnotationWithKotlinProperty() throws Exception {