Wrap captured local delegated property into Delegate
#KT-16864 Fixed
This commit is contained in:
@@ -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
|
||||
} ()
|
||||
}
|
||||
Reference in New Issue
Block a user