130 panic branch strict flag

✓ Passing This code compiles and runs correctly.

Code

input.kz

Output must match:

BACKEND_EXEC_ERROR

Error Verification

Actual Compiler Output

error[KORU022]: panic branch 'oom' is unhandled — in strict mode (--panic-branches=strict) panic branches must be handled or explicitly muted (| oom _ |> ...). Without strict mode this synthesizes @panic at runtime.
  --> tests/regression/200_COMPILER_FEATURES/210_PARSER/210_130_panic_branch_strict_flag/input.kz:27:0

❌ Compiler coordination error: Auto-discharge failed (multiple disposal options or no disposal event)
error: CompilerCoordinationFailed
/Users/larsde/src/koru/tests/regression/200_COMPILER_FEATURES/210_PARSER/210_130_panic_branch_strict_flag/backend.zig:94:13: 0x1051cb373 in emit (backend)
            return error.CompilerCoordinationFailed;
            ^
/Users/larsde/src/koru/tests/regression/200_COMPILER_FEATURES/210_PARSER/210_130_panic_branch_strict_flag/backend.zig:190:28: 0x1051cc05f in main (backend)
    const generated_code = try RuntimeEmitter.emit(compile_allocator, final_ast);
                           ^

Flows

flow ~alloc click a branch to expand · @labels scroll to their anchor
alloc (n: 4)

Test Configuration

MUST_FAIL

Compiler Flags:

--panic-branches=strict