[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
@@ -3457,6 +3457,12 @@ public class K2NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTes
public void testAllFilesPresentInSerializability() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/serializability"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
}
@Test
@TestMetadata("referenceToCompanionFunction.kt")
public void testReferenceToCompanionFunction() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/serializability/referenceToCompanionFunction.kt");
}
}
}
@@ -3419,6 +3419,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
public void testAllFilesPresentInSerializability() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/callableReference/serializability"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
}
@Test
@TestMetadata("referenceToCompanionFunction.kt")
public void testReferenceToCompanionFunction() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/serializability/referenceToCompanionFunction.kt");
}
}
}