✓
Passing This code compiles and runs correctly.
Code
// Test: ~if deeply nested in continuation hierarchy
//
// This tests the case where ~if is several levels deep in nested continuations.
// Same structural challenge as 320_024_for_deeply_nested.
//
// The transform must search RECURSIVELY through nested continuations.
~import std/io
~import std/control
const std = @import("std");
// Event chain to create deep nesting
~tor step1 {}
~proc step1|zig {
}
~tor step2 {} -> i32
~proc step2|zig {
return 42;
}
// Main flow: if is nested 2 levels deep
~step1() |> step2(): r |> if(r > 10)
| then |> std/io:print.ln("greater")
| else |> std/io:print.ln("less")
Actual
greater
Expected output
greater
Flows
flow ~step1 click a branch to expand · @labels scroll to their anchor
step1
Test Configuration
MUST_RUN