017 pipe arm on join refused

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

Code

input.k

Actual compiler output

error[KORU161]: std/channel(inbox): `| done` doesn't parse on the join — consumers are `! <kind> <bind> |> ...` arms; the chain steps (`std/channel:send/recv/close`) carry the `|` branches
  --> tests/regression/600_STDLIB/699_CHANNEL/699_017_pipe_arm_on_join_refused/input.k:13:0

Compiler must reject:

Compilation must fail with a diagnostic.

Flows

flow ~std/proto click a branch to expand · @labels scroll to their anchor
std/proto (Reading, source: id: u64)
flow ~new click a branch to expand · @labels scroll to their anchor
new (expr: inbox, capacity: 8, source: reading: Reading)
flow ~std/channel click a branch to expand · @labels scroll to their anchor
std/channel (inbox)

Test Configuration

MUST_ERROR