✓
Passing This code compiles and runs correctly.
Code
// Test: Void event chaining with nested continuations
// When chaining void -> event with branches, should parse nested continuations correctly
// Pattern: ~void-event() |> branching-event()
// | branch1 |> _
// | branch2 |> _
~event void-event {}
~event branching-event {}
// MUST_FAIL: branching-event is declared void (no branches), so `| error` is a
// branch handler on an event that has no branches — category error.
~void-event() |> branching-event()
| error |> _
Must fail at runtime:
Program must error when executed.
Error Verification
Actual Compiler Output
error[KORU021]: event 'input:branching-event' has no branch 'error' (available: (none))
--> tests/regression/200_COMPILER_FEATURES/210_PARSER/210_014_void_chaining_nested/input.kz:14:0
❌ Compiler coordination error: Incomplete branch coverage
error: CompilerCoordinationFailed
/Users/larsde/src/koru/tests/regression/200_COMPILER_FEATURES/210_PARSER/210_014_void_chaining_nested/backend.zig:94:13: 0x10301f38b in emit (backend)
return error.CompilerCoordinationFailed;
^
/Users/larsde/src/koru/tests/regression/200_COMPILER_FEATURES/210_PARSER/210_014_void_chaining_nested/backend.zig:190:28: 0x103020077 in main (backend)
const generated_code = try RuntimeEmitter.emit(compile_allocator, final_ast);
^Test Configuration
MUST_FAIL