322 unbound produce dead at complete call

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

Code

input.k

Actual compiler output

error[KORU092]: the string produced by 'produce' has nowhere to land — every parameter downstream that could take it is already written
  --> tests/regression/200_COMPILER_FEATURES/210_PARSER/210_322_unbound_produce_dead_at_complete_call/input.k:20:0
    |
 20 | other(): o |> produce() |> consume(a: o): r
    | ^
  hint: leave the slot that should take it unfilled so the thread elects it, or drop the value at its source with `: _`. An unnamed produce cannot be referenced; `|>` forwards it or refuses.

Must fail at frontend compile:

Parsing or type-checking must reject the program.

Error output must contain

KORU092

Flows

flow ~other click a branch to expand · @labels scroll to their anchor
other

Test Configuration

MUST_ERROR LANGUAGES: zig