014 recv multi kind refused

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

Code

input.k

Actual compiler output

error[KORU161]: std/channel:recv(wire): recv can't spell one payload type on a multi-kind channel — consume by `!` arms: `std/channel(wire) ! reading v |> ...`
  --> tests/regression/600_STDLIB/699_CHANNEL/699_014_recv_multi_kind_refused/input.k:17: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 ~std/proto click a branch to expand · @labels scroll to their anchor
std/proto (Alert, source: level: u64)
flow ~new click a branch to expand · @labels scroll to their anchor
new (expr: wire, capacity: 8, source: reading: Reading, alert: Alert)
flow ~recv click a branch to expand · @labels scroll to their anchor
recv (expr: wire)

Test Configuration

MUST_ERROR