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

12 lines
220 B
Kotlin

package foo
fun test(f : (Int) -> Boolean, p : Int) = f(p)
fun box() : Boolean {
if (!test({it + 1 == 2}, 1)) return false;
if (!test({it > 1}, 3)) return false;
return (test({((it < 1) == false)}, 1))
}