✗
Failing This test is currently failing.
Failed: expected-error-missing
Code
// TEST: Reject `| ok |> _` when the branch carries a payload.
//
// A payload-bearing branch must explicitly bind or discard its payload —
// silently ignoring the carried value is illegal. The branch name is part
// of the dispatch, but the value the branch carries must be acknowledged.
//
// Legal: | ok x |> use(x) — bind and use
// Legal: | ok _ |> _ — explicit discard
// Illegal: | ok |> _ — neither bound nor discarded
~event compute {}
| ok i32
~proc compute {
return .{ .ok = 42 };
}
~compute()
| ok |> _
pub fn main() void {}
Error Verification
Expected Error Pattern
branch carries payload, must bind or discardTest Configuration
MUST_FAIL
Expected Behavior:
FRONTEND_COMPILE_ERROR