127 nested call argument

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

Code

input.k

Actual compiler output

error[KORU104]: nested call in argument 'x' — calls are not expressions; use tor 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 `tor(args): x |> ...` and use `x` here

Frontend must reject with:

CONTAINS error[KORU104
CONTAINS nested call
CONTAINS bind

Flows

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

Test Configuration

MUST_ERROR