130 call in captured field

✓ Passing This code compiles and runs correctly.

Code

input.k

Frontend must reject with:

CONTAINS error[KORU104
CONTAINS nested call
CONTAINS chain

Error Verification

Expected Error Pattern

A call inside a CAPTURED field expression is illegal — calls are not
expressions; the idiom is bind-first, exactly how every green benchmark
kernel folds (`g(a: i): x |> captured { acc: s.acc + x }`).

Guarded by the KORU104 expression-admission wall (flow_checker, Stage A).
capture/captured carry their brace payload as a Source-typed arg; the wall
parses that source as a field-expression list and judges each field (the
general "transform declares its Source is expression-shaped" contract is
an open design item). Previously the call leaked verbatim into emitted Zig.

Actual Compiler Output

error[KORU104]: nested call in captured field 'acc' — calls are not expressions; use event chaining: bind the result first
  --> tests/regression/320_CONTROL_FLOW/320_130_call_in_captured_field/input.k:18:4
    |
 18 |     ! each i |> captured { acc: s.acc + g(a: @as(i64, @intCast(i))) }
    |    ^
  hint: rewrite as `event(args): x |> ...` and use `x` here

Flows

flow ~capture click a branch to expand · @labels scroll to their anchor
capture (source: acc: 0[i64])

Test Configuration

MUST_FAIL