fun foo(f: () -> Int) { f() } fun main(args: String) { foo(fun(): Int { return 1 }) }