✓
Passing This code compiles and runs correctly.
Code
// ============================================================================
// VERIFIED REGRESSION TEST - DO NOT MODIFY WITHOUT DISCUSSION
// ============================================================================
// Test: Nested Continuation Depth 3
// Feature: Flow with 3 levels of nested continuations
// Verifies: Deeper nesting works
// Depth: start |> level1 |> level2 |> level3 → result
// ============================================================================
const std = @import("std");
~import std/io
~event add-one { value: i32 }
| done i32
~add-one => done value + 1
~event add-two { value: i32 }
| done i32
~add-two => done value + 2
~event add-three { value: i32 }
| done i32
~add-three => done value + 3
// Chain: 10 → add-one → add-two → add-three → print result
// Depth 3: Three nested continuations
// Test: 10 + 1 + 2 + 3 = 16
~add-one(value: 10)
| done a |> add-two(value: a)
| done b |> add-three(value: b)
| done c |> std/io:print.ln("{{c:d}}")
Actual
16
Test Configuration
MUST_RUN