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