Files
kotlin-fork/js/js.translator/testData/box/callableReference/function/closureWithSideEffect.kt
T

13 lines
248 B
Kotlin
Vendored

// This test was adapted from compiler/testData/codegen/box/callableReference/function/local/.
package foo
fun box(): String {
var result = "Fail"
fun changeToOK() { result = "OK" }
val ok = ::changeToOK
ok()
return result
}