Files
kotlin-fork/compiler/testData/codegen/box/delegatedProperty/kt37204.kt
T
2023-12-26 10:18:19 +00:00

21 lines
369 B
Kotlin
Vendored

// WITH_STDLIB
// JVM_ABI_K1_K2_DIFF: KT-63864
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"
}