blob: bf6df6f2cf0137c44fb9d5c8194cdb623eb25c71 [file] [log] [blame]
// WITH_STDLIB
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"
}