Lambda to anonymous function: use callable builder (KT-7710)

This commit is contained in:
Mikhail Glukhikh
2018-05-10 21:08:11 +03:00
parent 8a20d1bf01
commit bd6fdb743c
9 changed files with 49 additions and 23 deletions
@@ -1,5 +1,7 @@
fun foo(f: (Int) -> String) {}
fun test() {
foo(fun(it: Int): String { return "$it" })
foo(fun(it: Int): String {
return "$it"
})
}