380 index on value store refused

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

Code

input.k

Actual compiler output

error[KORU161]: std/indexes:store(game, entities): 'game' is a capacity-1 value store — an index keys a plural container's rows; declare `std/store:new(game, capacity: N)` or drop the index
  --> tests/regression/600_STDLIB/690_STORE/690_380_index_on_value_store_refused/input.k:11:1

Must fail at runtime with:

ERROR_AT 11

Error output must contain

capacity-1 value store

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (game, source: entities: 0[i64])
flow ~store click a branch to expand · @labels scroll to their anchor
store (expr: game, entities, source: <implicit_source>)
flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "unreachable")

Test Configuration

MUST_ERROR LANGUAGES: zig