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
@@ -2,5 +2,7 @@ class Foo
fun baz(f: Foo.(i: Int, j: Int) -> Int) {}
fun main(args: Array<String>) {
baz(fun Foo.(i: Int, j: Int): Int { return i + j })
baz(fun Foo.(i: Int, j: Int): Int {
return i + j
})
}