[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:
Dmitriy Dolovov
2024-02-14 12:36:01 +01:00
committed by Space Team
parent 3962f26583
commit 9219a8f485
17 changed files with 551 additions and 8 deletions
@@ -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")
@@ -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")
@@ -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")