Files
kotlin-fork/js/js.translator/testData/expression/function/cases/functionLiteralAsParameter.kt
T
2015-04-07 13:08:53 +03:00

10 lines
143 B
Kotlin
Vendored

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