JVM_IR: do not move receivers on functions with inline class parameters

^KT-48993 Fixed
This commit is contained in:
pyos
2021-10-05 10:41:09 +02:00
committed by Ilmir Usmanov
parent 3eb3015688
commit 337cbeded1
7 changed files with 64 additions and 34 deletions
+20
View File
@@ -0,0 +1,20 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// FILE: 1.kt
inline class C(val x: String)
// FILE: 2.kt
@file:JvmMultifileClass
@file:JvmName("Multifile")
private var result: String? = null
var String.k: C
get() = C(this + result!!)
set(value) { result = value.x }
// FILE: 3.kt
fun box(): String {
"".k = C("K")
return "O".k.x
}