Files
kotlin-fork/compiler/testData/codegen/box/properties/lazyInitializationPure.kt
T
2020-11-24 12:29:48 +03:00

18 lines
268 B
Kotlin
Vendored

// TARGET_BACKEND: JS_IR
// FILE: A.kt
val a = "A"
// FILE: B.kt
val b = "B".apply {}
val c = "C"
// FILE: main.kt
fun box(): String {
return if (js("a") == "A" && js("typeof b") == "undefined" && js("typeof c") == "undefined")
"OK"
else "fail"
}