Lambda to anonymous function: use callable builder (KT-7710)
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
fun foo(f: (Int) -> String) {}
|
||||
|
||||
fun test() {
|
||||
foo(fun(it: Int): String { return "" })
|
||||
foo(fun(it: Int): String {
|
||||
return ""
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user