[FIR2IR] Properly set isAssignable flag for parameters of tailrec functions

^KT-63973 Fixed
This commit is contained in:
Dmitriy Novozhilov
2023-12-12 16:36:06 +02:00
committed by Space Team
parent f4e3203cd8
commit 28f0f1ea88
25 changed files with 153 additions and 3 deletions
@@ -37923,6 +37923,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/vararg/varargInFunParam.kt");
}
@Test
@TestMetadata("varargInTailrec.kt")
public void testVarargInTailrec() throws Exception {
runTest("compiler/testData/codegen/box/vararg/varargInTailrec.kt");
}
@Test
@TestMetadata("varargsAndFunctionLiterals.kt")
public void testVarargsAndFunctionLiterals() throws Exception {
@@ -37923,6 +37923,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT
runTest("compiler/testData/codegen/box/vararg/varargInFunParam.kt");
}
@Test
@TestMetadata("varargInTailrec.kt")
public void testVarargInTailrec() throws Exception {
runTest("compiler/testData/codegen/box/vararg/varargInTailrec.kt");
}
@Test
@TestMetadata("varargsAndFunctionLiterals.kt")
public void testVarargsAndFunctionLiterals() throws Exception {
@@ -37377,6 +37377,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/vararg/varargInFunParam.kt");
}
@Test
@TestMetadata("varargInTailrec.kt")
public void testVarargInTailrec() throws Exception {
runTest("compiler/testData/codegen/box/vararg/varargInTailrec.kt");
}
@Test
@TestMetadata("varargsAndFunctionLiterals.kt")
public void testVarargsAndFunctionLiterals() throws Exception {
@@ -37377,6 +37377,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
runTest("compiler/testData/codegen/box/vararg/varargInFunParam.kt");
}
@Test
@TestMetadata("varargInTailrec.kt")
public void testVarargInTailrec() throws Exception {
runTest("compiler/testData/codegen/box/vararg/varargInTailrec.kt");
}
@Test
@TestMetadata("varargsAndFunctionLiterals.kt")
public void testVarargsAndFunctionLiterals() throws Exception {