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