348 store insert fused after index refused

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

Code

input.k

Actual compiler output

error[KORU161]: std/store:insert(ents): missing comma — 'py: 1' began a new field but was read as part of the field above it; separate fields with commas
  --> tests/regression/600_STDLIB/690_STORE/690_348_store_insert_fused_after_index_refused/input.k:9:0

Must fail at runtime with:

CONTAINS error[KORU161]
CONTAINS missing comma
CONTAINS 'py: 1'

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (ents, capacity: 4, source: px: i64, py: i64)
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (ents, source: px: xs[0] py: 1)
flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "unreachable")

Test Configuration

MUST_ERROR