Files
kotlin-fork/js/js.translator/testFiles/expression/function/cases/functionLiteralAsParameter.kt
T
2012-02-27 21:55:58 +04:00

10 lines
146 B
Kotlin

package foo
fun apply(f : (Int) -> Int, t : Int) : Int {
return f(t)
}
fun box() : Boolean {
return apply({(a: Int) -> a + 5 }, 3) == 8
}