127 nested call argument

✓ Passing This code compiles and runs correctly.

Code

input.k

Frontend must reject with:

CONTAINS error[KORU104
CONTAINS nested call
CONTAINS bind

Error Verification

Expected Error Pattern

A call nested directly in argument position — r1(x: r1(x: 5)) — is ILLEGAL
(Lars-ruled 2026-07-05). The idiom is bind-first: `r1(x: 5): a |> r1(x: a)`.

Guarded by the KORU104 expression-admission wall (flow_checker, Stage A):
the compiler rejects with "nested call in argument 'x' — calls are not
expressions; use event chaining: bind the result first". This pin holds
that wall up; before it landed, the compiler accepted the shape and leaked
the inner call's Koru syntax verbatim into emitted Zig (raw Stage-D error).

Actual Compiler Output

error[KORU104]: nested call in argument 'x' — calls are not expressions; use event chaining: bind the result first
  --> tests/regression/320_CONTROL_FLOW/320_127_nested_call_argument/input.k:18:0
    |
 18 | r1(x: r1(x: 5)): v |> std/io:print.ln("{{ v:d }}")
    | ^
  hint: rewrite as `event(args): x |> ...` and use `x` here

Flows

flow ~r1 click a branch to expand · @labels scroll to their anchor
r1 (x: r1(x: 5))

Test Configuration

MUST_FAIL