✓
Passing This code compiles and runs correctly.
Code
// Test: Basic ~capture as top-level flow
~import "$std/io"
~import "$std/control"
// Struct capture with typed init
~capture(expr: { total: @as(i32, 0) })
| as |> captured { total: 42 }
| captured final |> std.io:print.ln("{{ final.total:d }}")
Expected
42
Actual
42
Test Configuration
MUST_RUN