039 store plural updated bad destructure

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

Code

input.k

Actual compiler output

error[KORU161]: std/store:new(squad): `! updated` binds the written field's images — destructure exactly { old, new } (row fields ride `inserted`/`removed`)
  --> tests/regression/600_STDLIB/690_STORE/690_039_store_plural_updated_bad_destructure/input.k:12:0

Compiler must reject:

Compilation must fail with a diagnostic.

Error output must contain

std/store:new(squad): `! updated` binds the written field's images — destructure exactly { old, new } (row fields ride `inserted`/`removed`)

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (reserve, source: pool: 0[i64])
flow ~new click a branch to expand · @labels scroll to their anchor
new (squad, capacity: 64, source: hp: i64)
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (squad, source: hp: 10)

Test Configuration

MUST_ERROR