[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:
committed by
Space Team
parent
7c1c01156f
commit
feed740415
+6
@@ -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 {
|
||||
|
||||
+6
@@ -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 {
|
||||
|
||||
+6
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user