175 namespaced call in produce

✓ 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_175_namespaced_call_in_produce/input.k:12:0
    |
 12 | n -> std/io:print.ln(s)
    | ^
  hint: rewrite as `tor(args): x |> ...` and use `x` here

Frontend must reject with:

CONTAINS error[KORU104
CONTAINS nested call
CONTAINS chain

Flows

flow ~n click a branch to expand · @labels scroll to their anchor
n (s: "x")

Test Configuration

MUST_ERROR