✓
Passing This code compiles and runs correctly.
Code
// Test: if inside for - depth-first transform ordering
// Inner if should transform before outer for
~import std/control
const std = @import("std");
~event start {}
~proc start|zig {
}
// For loop contains if
// Both should transform to native Zig constructs
~start() |> for(&[_]i32{1, 2, 3})
! each item |> if(item > 1)
| then |> _
| else |> _
| done |> _
Test Configuration
MUST_RUN