✓
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
// Event that uses ~for in its implementation
tor count-to-three {} -> i32
// Subflow implementation using ~for as the starting construct
count-to-three = for(0..3)
! each _ |> std/io:print.ln("counting")
| done -> 3
// Main flow calls the subflow
count-to-three(): _ |> std/io:print.ln("done")
Actual
counting
counting
counting
done
Expected output
counting
counting
counting
done
Flows
subflow ~count-to-three click a branch to expand · @labels scroll to their anchor
for (0..3)
flow ~count-to-three click a branch to expand · @labels scroll to their anchor
count-to-three
Test Configuration
MUST_RUN