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