Resolve expression in property delegate

This commit is contained in:
Natalia.Ukhorskaya
2013-04-30 15:35:25 +04:00
parent e143a53670
commit c58d4fd6d2
17 changed files with 391 additions and 42 deletions
@@ -0,0 +1,18 @@
trait A {
val prop: Int
}
class AImpl: A {
override val prop by Delegate()
}
fun foo() {
AImpl().prop
}
class Delegate {
fun get(t: Any?, p: String): Int {
t.equals(p) // to avoid UNUSED_PARAMETER warning
return 1
}
}