backend: add tests for lambda functions
This commit is contained in:
committed by
SvyatoslavScherbina
parent
b5ffc48547
commit
4dec392880
@@ -0,0 +1,8 @@
|
||||
fun main(args : Array<String>) {
|
||||
val x = foo {
|
||||
it + 1
|
||||
}
|
||||
println(x)
|
||||
}
|
||||
|
||||
fun foo(f: (Int) -> Int) = f(42)
|
||||
Reference in New Issue
Block a user