386 arm bind across sweep boundary

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

Code

input.k

Actual compiler output

error[KORU161]: std/store:query(rows): the sweep body reads 'p', bound by the `! each` 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 `: p`, or a tor returning the concrete type).
  --> tests/regression/600_STDLIB/690_STORE/690_386_arm_bind_across_sweep_boundary/input.k:19:1

Output must match:

1

Error output must contain

the sweep body reads 'p', bound by the `! each` arm — the arm's payload is wildcard `*`, so the binding's type is not in the decl and the sweep boundary cannot name it

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (rows, capacity: 8, source: v: i64)
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (rows, source: v: 1)
flow ~zip click a branch to expand · @labels scroll to their anchor
zip (a: 0..2, b: 10..12)

Test Configuration

MUST_ERROR LANGUAGES: zig