JVM_IR: use correct dispatch receiver type in more references
#KT-46902 Fixed
This commit is contained in:
@@ -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()
|
||||
Vendored
-2
@@ -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.*
|
||||
|
||||
Vendored
-2
@@ -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
@@ -1,5 +1,4 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// WITH_RUNTIME
|
||||
|
||||
// FILE: a.kt
|
||||
|
||||
-2
@@ -1,5 +1,3 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
|
||||
// FILE: a.kt
|
||||
package a
|
||||
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
|
||||
// FILE: a.kt
|
||||
package a
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
|
||||
// FILE: a/Base.java
|
||||
package a;
|
||||
|
||||
Reference in New Issue
Block a user