Extension properties in class: don't put receiver on stack for GETFIELD/PUTFIELD instruction

#KT-3031 Fixed
This commit is contained in:
Natalia.Ukhorskaya
2012-11-13 18:36:02 +04:00
parent f868d965e1
commit ba2eab526a
17 changed files with 318 additions and 5 deletions
@@ -0,0 +1,16 @@
class Test {
var Int.foo: String = "fail"
set(str: String) {
$foo = str
}
fun test(): String {
val i = 1
i.foo = "OK"
return i.foo
}
}
fun box(): String {
return Test().test()
}