[K/Wasm] Convert non-capturing lambdas into singletons ^KT-64803 Fixed

This commit is contained in:
Artem Kobzar
2024-01-29 12:52:18 +00:00
committed by Space Team
parent e03f8b503f
commit 1fe77705b0
37 changed files with 245 additions and 20 deletions
@@ -5555,6 +5555,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/closures/closureWithParameterAndBoxing.kt");
}
@Test
@TestMetadata("closuresAsSingleton.kt")
public void testClosuresAsSingleton() throws Exception {
runTest("compiler/testData/codegen/box/closures/closuresAsSingleton.kt");
}
@Test
@TestMetadata("crossinlineLocalDeclaration.kt")
public void testCrossinlineLocalDeclaration() throws Exception {
@@ -5555,6 +5555,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT
runTest("compiler/testData/codegen/box/closures/closureWithParameterAndBoxing.kt");
}
@Test
@TestMetadata("closuresAsSingleton.kt")
public void testClosuresAsSingleton() throws Exception {
runTest("compiler/testData/codegen/box/closures/closuresAsSingleton.kt");
}
@Test
@TestMetadata("crossinlineLocalDeclaration.kt")
public void testCrossinlineLocalDeclaration() throws Exception {
@@ -5555,6 +5555,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/closures/closureWithParameterAndBoxing.kt");
}
@Test
@TestMetadata("closuresAsSingleton.kt")
public void testClosuresAsSingleton() throws Exception {
runTest("compiler/testData/codegen/box/closures/closuresAsSingleton.kt");
}
@Test
@TestMetadata("crossinlineLocalDeclaration.kt")
public void testCrossinlineLocalDeclaration() throws Exception {
@@ -5555,6 +5555,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
runTest("compiler/testData/codegen/box/closures/closureWithParameterAndBoxing.kt");
}
@Test
@TestMetadata("closuresAsSingleton.kt")
public void testClosuresAsSingleton() throws Exception {
runTest("compiler/testData/codegen/box/closures/closuresAsSingleton.kt");
}
@Test
@TestMetadata("crossinlineLocalDeclaration.kt")
public void testCrossinlineLocalDeclaration() throws Exception {