103 effect obligation cannot escape

✓ Passing This code compiles and runs correctly.

Code

input.kz

Backend must reject with:

CONTAINS error[KORU030]
CONTAINS was not discharged

Error Verification

Actual Compiler Output

error[KORU030]: Resource 'r' obligation <active!> was not discharged. No event accepts <!active>.
  --> auto_discharge:32:0

❌ Compiler coordination error: Auto-discharge failed (multiple disposal options or no disposal event)
error: CompilerCoordinationFailed
/Users/larsde/src/koru/tests/regression/400_RUNTIME_FEATURES/400_103_effect_obligation_cannot_escape/backend.zig:95:13: 0x1006eb9d3 in emit (backend)
            return error.CompilerCoordinationFailed;
            ^
/Users/larsde/src/koru/tests/regression/400_RUNTIME_FEATURES/400_103_effect_obligation_cannot_escape/backend.zig:202:28: 0x1006ecb63 in main (backend)
    const generated_code = try RuntimeEmitter.emit(compile_allocator, final_ast);
                           ^

Flows

flow ~requires click a branch to expand · @labels scroll to their anchor
requires (source: exe.linkLibC();)
flow ~gen click a branch to expand · @labels scroll to their anchor
gen (n: 3)

Test Configuration

MUST_FAIL