Files
kotlin/compiler/testData/cli/js/separateModules/sepModule4.kt
2018-04-10 15:58:30 +03:00

17 lines
220 B
Kotlin
Vendored

package m4
import m3.*
inline fun foo(action: () -> Int): Int {
return action()
}
fun bar(): Int {
foo { return 100 }
return -99
}
fun box(): String {
if (bar() == 100) return "OK"
return "fail"
}