004 shape error

✓ Passing This code compiles and runs correctly.

Code

input.kz

Backend must reject with:

CONTAINS error[KORU021]
CONTAINS has no branch 'nonexistent'

Error Verification

Actual Compiler Output

error[KORU021]: event 'input:process' has no branch 'nonexistent' (available: success, warning)
  --> tests/regression/300_ADVANCED_FEATURES/355_OPTIONAL_BRANCHES/355_004_shape_error/input.kz:25:0

❌ Compiler coordination error: Incomplete branch coverage
error: CompilerCoordinationFailed
/Users/larsde/src/koru/tests/regression/300_ADVANCED_FEATURES/355_OPTIONAL_BRANCHES/355_004_shape_error/backend.zig:94:13: 0x100d4f18f in emit (backend)
            return error.CompilerCoordinationFailed;
            ^
/Users/larsde/src/koru/tests/regression/300_ADVANCED_FEATURES/355_OPTIONAL_BRANCHES/355_004_shape_error/backend.zig:190:28: 0x100d4fe7b in main (backend)
    const generated_code = try RuntimeEmitter.emit(compile_allocator, final_ast);
                           ^

Test Configuration

MUST_FAIL