JVM IR: Fix corresponding properties in inline classes
This commit is contained in:
committed by
Alexander Udalov
parent
c41e71b1c5
commit
497df0922a
@@ -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
|
||||
Reference in New Issue
Block a user