Files
kotlin-fork/js/js.translator/testData/closure/cases/closureLocalLiteralFunction.kt
T
2014-03-11 20:04:00 +04:00

14 lines
165 B
Kotlin

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