JVM_IR: fix lifting of arguments to object super constructors
If the arguments are reordered, they can not only be reads of temporary variables, but also implicit type casts of said reads. Fixes #KT-42002
This commit is contained in:
+5
@@ -315,6 +315,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/argumentOrder/argumentOrderInObjectSuperCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("argumentOrderInObjectSuperCallWithPlatformType.kt")
|
||||
public void testArgumentOrderInObjectSuperCallWithPlatformType() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/argumentOrder/argumentOrderInObjectSuperCallWithPlatformType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("argumentOrderInSuperCall.kt")
|
||||
public void testArgumentOrderInSuperCall() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/argumentOrder/argumentOrderInSuperCall.kt");
|
||||
|
||||
Reference in New Issue
Block a user