Intention to convert anonymous function to lambda

This commit is contained in:
Natalia Ukhorskaya
2015-12-15 10:22:53 +03:00
parent c79ffbac5c
commit 693e158759
27 changed files with 451 additions and 57 deletions
@@ -0,0 +1,9 @@
fun foo(f: () -> Int) {
f()
}
fun main(args: String) {
foo(fun(): Int {
return 1
})
}