Files
kotlin-fork/compiler/testData/codegen/box/delegatedProperty/local/kt16864.kt
T
2018-06-28 12:26:41 +02:00

15 lines
259 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
object Whatever {
operator fun getValue(thisRef: Any?, prop: Any?) = "OK"
}
fun box(): String {
val key by Whatever
return {
object {
val keys = key
}.keys
} ()
}