131 call in for bound

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

Code

input.k

Actual compiler output

error[KORU104]: nested call in argument 'expr' — calls are not expressions; use tor chaining: bind the result first
  --> tests/regression/320_CONTROL_FLOW/320_131_call_in_for_bound/input.k:16:0
    |
 16 | ! as s |> for(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 ~capture click a branch to expand · @labels scroll to their anchor
capture (source: acc: 0[i64])

Test Configuration

MUST_ERROR