Fix access to top level delegated property from another property

#KT-5612 Fixed
This commit is contained in:
Alexander Udalov
2014-08-14 10:42:40 +04:00
parent 9e971ed2b9
commit 99d4f97aef
3 changed files with 20 additions and 5 deletions
@@ -0,0 +1,13 @@
// KT-5612
class Delegate {
public fun get(thisRef: Any?, prop: PropertyMetadata): String {
return "OK"
}
}
val prop by Delegate()
val a = prop
fun box() = a