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