381 second store new refused

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

Code

input.k

Actual compiler output

error[KORU161]: std/store:new(players): 'players' is already declared — a second `new` on one store name re-mints `__KoruStoreT_players` and `__koru_store_players`; rename it or drop the earlier declaration
  --> tests/regression/600_STDLIB/690_STORE/690_381_second_store_new_refused/input.k:11:1

error[KORU161]: std/store:insert(players): a row block names every column exactly once (2 given, 1 declared)
  --> tests/regression/600_STDLIB/690_STORE/690_381_second_store_new_refused/input.k:13:1

Must fail at runtime with:

ERROR_AT 11

Error output must contain

already declared

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (players, capacity: 8, source: key: i64)
flow ~new click a branch to expand · @labels scroll to their anchor
new (players, capacity: 8, source: key: i64, other: i64)
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (players, source: key: 1, other: 2)

Test Configuration

MUST_ERROR LANGUAGES: zig