Files
kotlin-fork/js/js.translator/testData/box/closure/closureLocalLiteralFunction.kt
T
Anton Bannykh b551afb202 JS IR: minor fix for callable ref translation
The caching variable has to have no initializers so that there is no
dependence on evaluation order.
2018-06-18 13:15:19 +03:00

15 lines
199 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1114
package foo
val k = { "K" }
fun test(): String {
val o = { "O" }
val funLit = { o() + k() }
return funLit()
}
fun box(): String {
return test()
}