[FIR2IR] Properly generate GetObject expression for callable reference on companion object

^KT-55909 Fixed
This commit is contained in:
Dmitriy Novozhilov
2023-02-02 13:03:34 +02:00
committed by Space Team
parent 80b48eed0b
commit 075e025452
13 changed files with 280 additions and 1 deletions
@@ -3293,6 +3293,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
public void testAllFilesPresentInSerializability() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/serializability"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
}
@Test
@TestMetadata("referenceToCompanionFunction.kt")
public void testReferenceToCompanionFunction() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/serializability/referenceToCompanionFunction.kt");
}
}
}
@@ -3347,6 +3347,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
public void testAllFilesPresentInSerializability() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/serializability"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("referenceToCompanionFunction.kt")
public void testReferenceToCompanionFunction() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/serializability/referenceToCompanionFunction.kt");
}
}
}
@@ -3347,6 +3347,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
public void testAllFilesPresentInSerializability() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/serializability"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("referenceToCompanionFunction.kt")
public void testReferenceToCompanionFunction() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/serializability/referenceToCompanionFunction.kt");
}
}
}
@@ -3347,6 +3347,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
public void testAllFilesPresentInSerializability() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/serializability"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
}
@Test
@TestMetadata("referenceToCompanionFunction.kt")
public void testReferenceToCompanionFunction() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/serializability/referenceToCompanionFunction.kt");
}
}
}