JVM_IR: use correct dispatch receiver type in more references

#KT-46902 Fixed
This commit is contained in:
pyos
2021-05-26 10:45:16 +02:00
committed by max-kammerer
parent 16dbafced1
commit d37ceb47be
17 changed files with 69 additions and 59 deletions
@@ -0,0 +1,12 @@
class A {
inner class C(val m: String) {
fun test(): String {
m.f(::C)
return m
}
}
}
inline fun String.f(g: (String) -> A.C): A.C = g(this)
fun box(): String = A().C("OK").test()
@@ -1,7 +1,5 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// IGNORE_BACKEND_FIR: JVM_IR
// ^ ::jpf is incorrectly represented as a reference to Base::jpf (should be: reference to fake override in Derived)
// FILE: kt46578_delegated.kt
import p.*
@@ -1,7 +1,5 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// IGNORE_BACKEND_FIR: JVM_IR
// ^ ::jpf is incorrectly represented as a reference to Base::jpf (should be: reference to fake override in Derived)
// FILE: kt46578_propertyRef.kt
import p.*
@@ -1,5 +1,4 @@
// TARGET_BACKEND: JVM
// IGNORE_BACKEND_FIR: JVM_IR
// WITH_RUNTIME
// FILE: a.kt
@@ -1,5 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
// FILE: a.kt
package a
@@ -1,5 +1,4 @@
// IGNORE_BACKEND: WASM
// IGNORE_BACKEND_FIR: JVM_IR
// FILE: a.kt
package a
@@ -1,5 +1,4 @@
// TARGET_BACKEND: JVM
// IGNORE_BACKEND_FIR: JVM_IR
// FILE: a/Base.java
package a;