Psi2ir: fix parameter indices when generating extension invoke call

Incorrect `valueParameter` was passed to `generateValueArgument`, which
resulted in incorrect type being considered for generating suspend
conversion.

 #KT-50949 Fixed
This commit is contained in:
Alexander Udalov
2022-03-08 23:59:26 +01:00
parent c2ab23ed70
commit 1e26888dd9
16 changed files with 138 additions and 3 deletions
@@ -46301,6 +46301,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
runTest("compiler/testData/codegen/box/suspendConversion/chainedFunSuspendConversionForSimpleExpression.kt");
}
@Test
@TestMetadata("kt50949_suspendConversionForExtensionFunction.kt")
public void testKt50949_suspendConversionForExtensionFunction() throws Exception {
runTest("compiler/testData/codegen/box/suspendConversion/kt50949_suspendConversionForExtensionFunction.kt");
}
@Test
@TestMetadata("overloadResolutionBySuspendModifier.kt")
public void testOverloadResolutionBySuspendModifier() throws Exception {
@@ -1892,6 +1892,12 @@ public class Fir2IrTextTestGenerated extends AbstractFir2IrTextTest {
runTest("compiler/testData/ir/irText/expressions/stringTemplates.kt");
}
@Test
@TestMetadata("suspendConversionForExtensionFunction.kt")
public void testSuspendConversionForExtensionFunction() throws Exception {
runTest("compiler/testData/ir/irText/expressions/suspendConversionForExtensionFunction.kt");
}
@Test
@TestMetadata("suspendConversionInVararg.kt")
public void testSuspendConversionInVararg() throws Exception {