Files
kotlin-fork/compiler/testData/codegen/box/delegatedProperty/local/kt23117.kt
T
2019-02-05 16:14:51 +01:00

15 lines
256 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR, JVM_IR
//WITH_RUNTIME
import kotlin.properties.Delegates.notNull
fun box(): String {
var bunny by notNull<String>()
val obj = object {
val getBunny = { bunny }
}
bunny = "OK"
return obj.getBunny()
}