[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
@@ -468,6 +468,11 @@ public class KlibIrTextTestCaseGenerated extends AbstractKlibIrTextTestCase {
runTest("compiler/testData/ir/irText/declarations/typeAlias.kt");
}
@TestMetadata("typeAliasOfPrimitiveTypeInVarargArgument.kt")
public void testTypeAliasOfPrimitiveTypeInVarargArgument() throws Exception {
runTest("compiler/testData/ir/irText/declarations/typeAliasOfPrimitiveTypeInVarargArgument.kt");
}
@TestMetadata("compiler/testData/ir/irText/declarations/annotations")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)