Safely unfold callable reference instruction in interpreter
There was an assumption that if receiver exists then parameter will also exist. This is not true for references marked with `JvmStatic`. Later in `JvmStaticInObjectLowering` dispatch receiver may be dropped.
This commit is contained in:
+6
@@ -16889,6 +16889,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/evaluate/plus.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("referenceNameFromStaticInDifferentModule.kt")
|
||||
public void testReferenceNameFromStaticInDifferentModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/evaluate/referenceNameFromStaticInDifferentModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("rem.kt")
|
||||
public void testRem() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user