[FIR] Expand type of vararg parameter before constructing array type
This helps to have a primitive array instead of an array of primitives as the type of vararg value parameter. Also, this prevents ABI-incompatibility with the libraries (KLIBs) compiled with K1. ^KT-65588
This commit is contained in:
committed by
Space Team
parent
3962f26583
commit
9219a8f485
+6
@@ -534,6 +534,12 @@ public class ClassicNativeIrTextTestGenerated extends AbstractClassicNativeIrTex
|
||||
runTest("compiler/testData/ir/irText/declarations/typeAlias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeAliasOfPrimitiveTypeInVarargArgument.kt")
|
||||
public void testTypeAliasOfPrimitiveTypeInVarargArgument() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/declarations/typeAliasOfPrimitiveTypeInVarargArgument.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/ir/irText/declarations/annotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+6
@@ -534,6 +534,12 @@ public class FirLightTreeNativeIrTextTestGenerated extends AbstractFirLightTreeN
|
||||
runTest("compiler/testData/ir/irText/declarations/typeAlias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeAliasOfPrimitiveTypeInVarargArgument.kt")
|
||||
public void testTypeAliasOfPrimitiveTypeInVarargArgument() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/declarations/typeAliasOfPrimitiveTypeInVarargArgument.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/ir/irText/declarations/annotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+6
@@ -534,6 +534,12 @@ public class FirPsiNativeIrTextTestGenerated extends AbstractFirPsiNativeIrTextT
|
||||
runTest("compiler/testData/ir/irText/declarations/typeAlias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeAliasOfPrimitiveTypeInVarargArgument.kt")
|
||||
public void testTypeAliasOfPrimitiveTypeInVarargArgument() throws Exception {
|
||||
runTest("compiler/testData/ir/irText/declarations/typeAliasOfPrimitiveTypeInVarargArgument.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/ir/irText/declarations/annotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
Reference in New Issue
Block a user