329 index decl no column refuses

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

Code

input.k

Actual compiler output

error[KORU161]: std/indexes:store(players): the declaration names no column - an index keys on one column of the store: std/indexes:store(players, <col>)
  --> tests/regression/600_STDLIB/690_STORE/690_329_index_decl_no_column_refuses/input.k:13:0

Must fail at runtime:

Program must error when executed.

Error output must contain

names no column

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (players, capacity: 8, source: key: i64)
flow ~store click a branch to expand · @labels scroll to their anchor
store (expr: players, source: <implicit_source>)
flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "unreachable")

Test Configuration

MUST_ERROR