✓
Passing This code compiles and runs correctly.
Code
// Store cell paths (`ui.sel`) must lower in if/when expressions outside
// transplanted watch arms — same rewrite watch bodies already get. Without
// it, Zig sees undeclared `ui` (todo_tui selection cursor).
import std/io
import std/store
std/store:new(ui) { sel: 0[i64] }
std/store:stored { ui.sel: 3 }
if(ui.sel > 0)
| then |> std/io:print.ln("sel {{ ui.sel:d }}")
| else |> std/io:print.ln("zero")
Actual
sel 3
Expected output
sel 3
Flows
flow ~new click a branch to expand · @labels scroll to their anchor
new (expr: ui, source: sel: 0[i64])
flow ~stored click a branch to expand · @labels scroll to their anchor
stored (source: ui.sel: 3)
flow ~if click a branch to expand · @labels scroll to their anchor
if (ui.sel > 0)
Test Configuration
MUST_RUN