009 no handler silent

✓ Passing This code compiles and runs correctly.

Code

// Test 918i: Optional Branches - No |? and No Handler
//
// Verifies:
// 1. Handler has NO |? catch-all
// 2. Optional branch fires at runtime with no handler
// 3. Expected: silently ignored (optional = truly optional)

~import "$std/io"

// Event with required + optional branches
~event process { value: u32 }
| success u32
| ?warning []const u8

~proc process {
    if (value > 100) {
        return .{ .warning = "Value too large" };
    }
    return .{ .success = value * 2 };
}

// value=10 → success → handled normally
~process(value: 10)
| success _ |> std.io:print.ln("SUCCESS")
// No |? — that's OK

// value=150 → warning → no handler, no |? → silently ignored
~process(value: 150)
| success _ |> std.io:print.ln("SUCCESS")
// No warning handler, no |? — optional branch fires into the void
input.kz

Expected

SUCCESS

Actual

SUCCESS

Test Configuration

MUST_RUN