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,15 @@
class Test {
val Int.foo: String = "OK"
get() {
val a = $foo
return "OK"
}
fun test(): String {
return 1.foo
}
}
fun box(): String {
return Test().test()
}