Lambda to anonymous function: use callable builder (KT-7710)
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user