Files
kotlin-fork/backend.native/tests/codegen/lambda/lambda7.kt
T
2017-10-20 18:25:05 +03:00

12 lines
165 B
Kotlin

package codegen.lambda.lambda7
import kotlin.test.*
@Test fun runTest() {
val x = foo {
it + 1
}
println(x)
}
fun foo(f: (Int) -> Int) = f(42)