✓
Passing This code compiles and runs correctly.
Code
// ============================================================================
// Test 055: Branch when clauses
// Tests that the parser accepts multiple continuations for the same branch
// with when clauses (guard expressions)
// ============================================================================
tor check { x: i32, y: i32 }
| high i32
| low i32
check => high x
// Flow with multiple continuations for same branch using when clauses
check(x: 10, y: 5)
| high h when h > 10 |> _
| high h when h > 5 |> _
| high _ |> _
| low _ |> _
Flows
flow ~check click a branch to expand · @labels scroll to their anchor
check (x: 10, y: 5)