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:
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
// TARGET_PLATFORM: JVM
|
||||
// FILE: A.java
|
||||
public class A {
|
||||
public static String f() {
|
||||
return "O";
|
||||
}
|
||||
}
|
||||
// FILE: a.kt
|
||||
open class C(x: String, y: String) {
|
||||
val result = x + y
|
||||
}
|
||||
|
||||
fun box() = object : C(y = "K", x = A.f()) {}.result
|
||||
Reference in New Issue
Block a user