Intention to convert anonymous function to lambda
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
fun foo(f: () -> Int) {
|
||||
f()
|
||||
}
|
||||
|
||||
fun main(args: String) {
|
||||
foo(fun(): Int {
|
||||
return 1
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user