JS IR: materialize Unit in lambdas

^KT-52010 fixed
This commit is contained in:
Anton Bannykh
2022-04-15 21:01:43 +03:00
committed by Anton Bannykh
parent bc3514feae
commit 281e381223
5 changed files with 87 additions and 0 deletions
@@ -2959,6 +2959,12 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
runTest("js/js.translator/testData/box/expression/function/lambdaOrLocalFunInsideEnumMethod.kt");
}
@Test
@TestMetadata("lambdaReturnValue.kt")
public void testLambdaReturnValue() throws Exception {
runTest("js/js.translator/testData/box/expression/function/lambdaReturnValue.kt");
}
@Test
@TestMetadata("localExtFunction.kt")
public void testLocalExtFunction() throws Exception {
@@ -8860,6 +8866,12 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
runTest("js/js.translator/testData/box/regression/kt2470.kt");
}
@Test
@TestMetadata("kt52010.kt")
public void testKt52010() throws Exception {
runTest("js/js.translator/testData/box/regression/kt52010.kt");
}
@Test
@TestMetadata("tmpInsidePrimaryConstructor.kt")
public void testTmpInsidePrimaryConstructor() throws Exception {
@@ -3355,6 +3355,12 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
runTest("js/js.translator/testData/box/expression/function/lambdaOrLocalFunInsideEnumMethod.kt");
}
@Test
@TestMetadata("lambdaReturnValue.kt")
public void testLambdaReturnValue() throws Exception {
runTest("js/js.translator/testData/box/expression/function/lambdaReturnValue.kt");
}
@Test
@TestMetadata("localExtFunction.kt")
public void testLocalExtFunction() throws Exception {
@@ -9484,6 +9490,12 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
runTest("js/js.translator/testData/box/regression/kt2470.kt");
}
@Test
@TestMetadata("kt52010.kt")
public void testKt52010() throws Exception {
runTest("js/js.translator/testData/box/regression/kt52010.kt");
}
@Test
@TestMetadata("tmpInsidePrimaryConstructor.kt")
public void testTmpInsidePrimaryConstructor() throws Exception {