Files
kotlin-fork/compiler/testData/codegen/box/delegatedProperty/kt37204.kt
T

21 lines
363 B
Kotlin
Vendored

// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
val log = StringBuilder()
inline fun test() {
val localLazy by lazy {
log.append("localLazy;")
"v;"
}
log.append("test;")
log.append(localLazy)
}
fun box(): String {
test()
val t = log.toString()
if (t != "test;localLazy;v;")
throw AssertionError(t)
return "OK"
}