fun foo(f: () -> Int) { } fun test() { val i = 1 + 2 foo(fun(): Int { return i * 3 }) }