Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
2b455fc1ba7dcb99fa03fdfc31c7672d6ccfc9fd
/
.
/
compiler
/
testData
/
codegen
/
box
/
properties
/
lazyInitializationThroughTopFun.kt
blob: 7dfea2bb6cd7b24011b2430ed358f33edf0ea44d [
file
]
// TARGET_BACKEND: JS_IR
// PROPERTY_LAZY_INITIALIZATION
// FILE: A.kt
var
result
:
String
?
=
null
val a
=
"a"
.
let
{
result
=
"OK"
it
+
"a"
}
fun foo
()
=
2
+
2
// FILE: main.kt
fun box
():
String
{
val foo
=
foo
()
return
result
!!
}