383 wildcard arm bind refuses at sweep

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

Code

input.k

Actual compiler output

error[KORU161]: std/store:query(spec): the sweep body reads 'g', bound by the `! as` arm — the arm's payload is wildcard `*`, so the binding's type is not in the decl and the sweep boundary cannot name it. Lift the value through a typed binding first (a mid-pipe `: g`, or a tor returning the concrete type).
  --> tests/regression/600_STDLIB/690_STORE/690_383_wildcard_arm_bind_refuses_at_sweep/input.k:13:1

Must fail at runtime with:

ERROR_AT 13

Error output must contain

arm's payload is wildcard

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (spec, capacity: 8, source: d: i64)
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (spec, source: d: 10)
flow ~capture click a branch to expand · @labels scroll to their anchor
capture (source: items: [_]i64{ 10, 20 })

Test Configuration

MUST_ERROR LANGUAGES: zig