Wrap captured local delegated property into Delegate

#KT-16864 Fixed
This commit is contained in:
Mikhael Bogdanov
2017-05-18 16:20:47 +02:00
parent fec8f4a48b
commit 47fec6c9d5
9 changed files with 73 additions and 1 deletions
@@ -0,0 +1,13 @@
object Whatever {
operator fun getValue(thisRef: Any?, prop: Any?) = "OK"
}
fun box(): String {
val key by Whatever
return {
object {
val keys = key
}.keys
} ()
}