Generate bytecode for delegated properties

This commit is contained in:
Natalia.Ukhorskaya
2013-04-22 13:59:37 +04:00
parent 3297c0e9d3
commit 6e2584d0de
33 changed files with 731 additions and 50 deletions
@@ -0,0 +1,13 @@
class Delegate {
fun get(t: Any?, p: String): Int = 1
}
class A {
inner class B {
val prop: Int by Delegate()
}
}
fun box(): String {
return if(A().B().prop == 1) "OK" else "fail"
}