✓
Passing This code compiles and runs correctly.
Code
// Test: nested for loops - depth-first transform ordering
// Inner for should transform before outer for
~import "$std/control"
const std = @import("std");
~event start {}
| done {}
~proc start {
return .{ .done = .{} };
}
// Outer for contains inner for
// Both should transform to Zig for loops
~start()
| done |> for(&[_]i32{1, 2})
| each |> for(&[_]i32{10, 20})
| each |> _
| done |> _
| done |> _