365 store scalar column subscript refused

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

Code

input.k

Actual compiler output

error[KORU161]: std/store: 'res[world.focus]' does not address a row — the index is a scalar-store column read, not a handle this store issued (handles come from `| row`, row cursors, or a handle-carrying column of the same store)
  --> tests/regression/600_STDLIB/690_STORE/690_365_store_scalar_column_subscript_refused/input.k:23:1

Must contain:

KORU161

Error output must contain

std/store: 'res[world.focus]' does not address a row — the index is a scalar-store column read, not a handle this store issued (handles come from `| row`, row cursors, or a handle-carrying column of the same store)

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (world, source: focus: 0[i64])
flow ~new click a branch to expand · @labels scroll to their anchor
new (res, capacity: 8, source: id: i64, touched: i64)
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (res, source: id: 0, touched: 0)

Test Configuration

MUST_ERROR