Psi2Ir: fix usage of flexible vararg type after approximation

This only affects JVM IR, and this is similar to how this was done in
the old JVM backend in `CallBasedArgumentGenerator.generateVararg`.

 #KT-52146 Fixed
This commit is contained in:
Alexander Udalov
2022-04-21 23:25:07 +02:00
parent 5450367e39
commit 24f3c7dc7d
7 changed files with 69 additions and 14 deletions
@@ -38875,6 +38875,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/vararg/kt46092.kt");
}
@TestMetadata("kt52146_samWithSelfTypeAndStarProjection.kt")
public void testKt52146_samWithSelfTypeAndStarProjection() throws Exception {
runTest("compiler/testData/codegen/box/vararg/kt52146_samWithSelfTypeAndStarProjection.kt");
}
@TestMetadata("kt581.kt")
public void testKt581() throws Exception {
runTest("compiler/testData/codegen/box/vararg/kt581.kt");