✓
Passing This code compiles and runs correctly.
Code
// Test: per-call template where the captured argument is a range
// expression. `0..3` is captured as the Expression text for `r`. The
// template interpolates it directly into a Zig `for` loop. This is the
// canonical `for` migration shape — the receipt that per-call templates
// can replace the [keyword|comptime|transform] for machinery.
const std = @import("std");
~pub event each-in { r: i32 }
~proc each-in|template|zig {
for ({{ r }}) |item| std.debug.print("{d}\n", .{item});
}
~each-in(r: 0..3)
Actual
0
1
2
Expected output
0
1
2
Flows
flow ~each-in click a branch to expand · @labels scroll to their anchor
each-in (r: 0..3)
Test Configuration
MUST_RUN