367 subscript write in tail step

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

Code

input.k

Actual compiler output

Error: output_emitted.zig:140:95: error: use of undeclared identifier 'b'
        _ = main_module.__store_write_s_event.handler(.{ .row = __koru_store_s.__koru_resolve(b), .field = 0, .value_0 = a, .value_1 = 0 });
                                                                                              ^

Must fail at backend compile:

Code generation must reject the program.

Error output must contain

use of undeclared identifier 'b'

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (w, source: h: 0[i64])
flow ~new click a branch to expand · @labels scroll to their anchor
new (s, capacity: 4, source: p: i64, v: i64)
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (s, source: p: 0, v: 1)
flow ~query click a branch to expand · @labels scroll to their anchor
query (s)

Test Configuration

MUST_ERROR