097 required terminal must be handled

✓ Passing This code compiles and runs correctly.

Code

input.kz

Must fail at runtime:

Program must error when executed.

Error Verification

Actual Compiler Output

error[KORU022]: branch 'done' must be handled but no continuation found
  --> tests/regression/400_RUNTIME_FEATURES/400_097_required_terminal_must_be_handled/input.kz:23:0

❌ Compiler coordination error: Incomplete branch coverage
error: CompilerCoordinationFailed
/Users/larsde/src/koru/tests/regression/400_RUNTIME_FEATURES/400_097_required_terminal_must_be_handled/backend.zig:94:13: 0x1033f21b7 in emit (backend)
            return error.CompilerCoordinationFailed;
            ^
/Users/larsde/src/koru/tests/regression/400_RUNTIME_FEATURES/400_097_required_terminal_must_be_handled/backend.zig:190:28: 0x1033f2ea3 in main (backend)
    const generated_code = try RuntimeEmitter.emit(compile_allocator, final_ast);
                           ^

Test Configuration

MUST_FAIL

Expected Error:

KORU022