[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
@@ -35,6 +35,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("annotationWithDefaultArgInDifferentModule.kt")
|
||||
public void testAnnotationWithDefaultArgInDifferentModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/annotationWithDefaultArgInDifferentModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("genericAnnotations.kt")
|
||||
public void testGenericAnnotations() throws Exception {
|
||||
|
||||
+6
@@ -35,6 +35,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("annotationWithDefaultArgInDifferentModule.kt")
|
||||
public void testAnnotationWithDefaultArgInDifferentModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/annotationWithDefaultArgInDifferentModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("genericAnnotations.kt")
|
||||
public void testGenericAnnotations() throws Exception {
|
||||
|
||||
+6
@@ -35,6 +35,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("annotationWithDefaultArgInDifferentModule.kt")
|
||||
public void testAnnotationWithDefaultArgInDifferentModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/annotationWithDefaultArgInDifferentModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("genericAnnotations.kt")
|
||||
public void testGenericAnnotations() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user