[FIR2IR] Fix and refactor generation of dynamic call receiver generation

#KT-57988 Fixed
This commit is contained in:
Kirill Rakhman
2023-04-18 15:58:03 +02:00
committed by Space Team
parent 8b47a4fa48
commit 35c6da1aa7
7 changed files with 99 additions and 26 deletions
@@ -21665,6 +21665,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/js"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
}
@Test
@TestMetadata("getOperatorOnDynamicThis.kt")
public void testGetOperatorOnDynamicThis() throws Exception {
runTest("compiler/testData/codegen/box/js/getOperatorOnDynamicThis.kt");
}
@Test
@TestMetadata("lambdaWithDynamicReceiver.kt")
public void testLambdaWithDynamicReceiver() throws Exception {
@@ -21803,6 +21803,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/js"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("getOperatorOnDynamicThis.kt")
public void testGetOperatorOnDynamicThis() throws Exception {
runTest("compiler/testData/codegen/box/js/getOperatorOnDynamicThis.kt");
}
@Test
@TestMetadata("lambdaWithDynamicReceiver.kt")
public void testLambdaWithDynamicReceiver() throws Exception {
@@ -21803,6 +21803,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/js"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("getOperatorOnDynamicThis.kt")
public void testGetOperatorOnDynamicThis() throws Exception {
runTest("compiler/testData/codegen/box/js/getOperatorOnDynamicThis.kt");
}
@Test
@TestMetadata("lambdaWithDynamicReceiver.kt")
public void testLambdaWithDynamicReceiver() throws Exception {
@@ -21803,6 +21803,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/js"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
}
@Test
@TestMetadata("getOperatorOnDynamicThis.kt")
public void testGetOperatorOnDynamicThis() throws Exception {
runTest("compiler/testData/codegen/box/js/getOperatorOnDynamicThis.kt");
}
@Test
@TestMetadata("lambdaWithDynamicReceiver.kt")
public void testLambdaWithDynamicReceiver() throws Exception {