129 call in produce expression

✓ Passing Passing: the compiler rejects this program as expected.

Code

input.k

Actual compiler output

error[KORU104]: nested call in a produce (`->`) expression — calls are not expressions; use tor chaining: bind the result first
  --> tests/regression/320_CONTROL_FLOW/320_129_call_in_produce_expression/input.k:16:0
    |
 16 | outer -> 1 + g(a: 4)
    | ^
  hint: rewrite as `tor(args): x |> ...` and use `x` here

Frontend must reject with:

CONTAINS error[KORU104
CONTAINS nested call
CONTAINS chain

Flows

flow ~outer click a branch to expand · @labels scroll to their anchor
outer

Test Configuration

MUST_ERROR