✓
Passing This code compiles and runs correctly.
Code
// ASPIRATION — TODO idea pin. Ruling 4: subscriptions are consumer-level
// and MANY — two watches on the same field both fire, in source order.
// Today store.kz walls this loudly (multi-watch sequencing splice).
~import std/io
~import std/store
~std/store:create(game) { entities: 0[i64] }
~std/store:watch(game)
! entities e |> std/io:print.ln("first: {{ e:d }}")
~std/store:watch(game)
! entities e |> std/io:print.ln("second: {{ e:d }}")
~std/store:stored { game.entities: game.entities + 1 }
Actual
first: 1
second: 1
Expected output
first: 1
second: 1
Flows
flow ~create click a branch to expand · @labels scroll to their anchor
create (expr: game, source: entities: 0[i64])
flow ~watch click a branch to expand · @labels scroll to their anchor
watch (expr: game)
flow ~watch click a branch to expand · @labels scroll to their anchor
watch (expr: game)
flow ~stored click a branch to expand · @labels scroll to their anchor
stored (source: game.entities: game.entities + 1)
Test Configuration
MUST_RUN