nested depth 4

✓ Passing This code compiles and runs correctly.

Code

// Depth 4 test: start |> +1 |> +2 |> +3 |> +4 → result (10+1+2+3+4 = 20)
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

~event add_four { value: i32 }
| done i32
~add_four = done value + 4

~add_one(value: 10)
| done a |> add_two(value: a)
    | done b |> add_three(value: b)
        | done c |> add_four(value: c)
            | done d |> std.io:print.ln("{{d:d}}")
input.kz

Actual

20

Test Configuration

MUST_RUN