[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
@@ -46,6 +46,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, 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
@@ -52,6 +52,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, 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
@@ -44,6 +44,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, 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
@@ -47,6 +47,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/annotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, 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