089 captured field swallows tor line

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

Code

input.k

Actual compiler output

error[KORU104]: nested call in captured field 'n' — calls are not expressions; use tor chaining: bind the result first
  --> tests/regression/100_PARSER/100_089_captured_field_swallows_tor_line/input.k:22:5
    |
 22 |     ! line _ |> captured {
    |     ^
  hint: rewrite as `tor(args): x |> ...` and use `x` here

Frontend must reject with:

CONTAINS error[KORU104]
CONTAINS nested call in captured field 'n'

Flows

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

Test Configuration

MUST_ERROR