Files
kotlin-fork/compiler/testData/codegen/box/delegatedProperty/local/kt23117.kt
T
2020-03-11 16:01:57 +03:00

15 lines
249 B
Kotlin
Vendored

// 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()
}