Files
kotlin-fork/compiler/testData/codegen/box/delegatedProperty/local/kt23117.kt
T
2019-11-19 11:00:09 +03:00

16 lines
279 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
// KJS_WITH_FULL_RUNTIME
// 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()
}