JVM IR: Fix corresponding properties in inline classes

This commit is contained in:
Steven Schäfer
2020-04-20 17:28:35 +02:00
committed by Alexander Udalov
parent c41e71b1c5
commit 497df0922a
9 changed files with 146 additions and 48 deletions
@@ -0,0 +1,14 @@
// FILE: 1.kt
inline class A(val x: String)
fun accessProperty(y: B): A {
y.a = A("OK")
return y.a
}
// FILE: 2.kt
class B(var a: A)
fun box(): String = accessProperty(B(A("Fail"))).x