349 store keyed addressing refused

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

Code

input.k

Actual compiler output

error[KORU161]: std/store:stored: keyed addressing 'pool[id: 7].hp' is a pinned hole (690_018) - no key->row map is emitted; address the row by handle instead (store[handle])
  --> tests/regression/600_STDLIB/690_STORE/690_349_store_keyed_addressing_refused/input.k:13:0

Must fail at runtime with:

CONTAINS error[KORU161]
CONTAINS keyed addressing
CONTAINS 690_018

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (pool, key: id, capacity: 64, source: id: i64, hp: i64)
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (pool, source: id: 7, hp: 50)
flow ~query click a branch to expand · @labels scroll to their anchor
query (pool)

Test Configuration

MUST_ERROR