✓
Passing This code compiles and runs correctly.
Code
// Test: ~for as subflow starting point
// This must work - transforms should apply to subflow bodies
~import std/io
~import std/control
const std = @import("std");
// Event that uses ~for in its implementation
~event count-to-three {}
| result i32
// Subflow implementation using ~for as the starting construct
~count-to-three = for(0..3)
! each _ |> std/io:print.ln("counting")
| done => result 3
// Main flow calls the subflow
~count-to-three()
| result _ |> std/io:print.ln("done")
Actual
counting
counting
counting
done
Expected output
counting
counting
counting
done
Test Configuration
MUST_RUN