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' with phantom state <active!> was not discharged. No event accepts <!active>.
  --> auto_discharge:33: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:94:13: 0x1012d64db in emit (backend)
            return error.CompilerCoordinationFailed;
            ^
/Users/larsde/src/koru/tests/regression/400_RUNTIME_FEATURES/400_103_effect_obligation_cannot_escape/backend.zig:190:28: 0x1012d71c7 in main (backend)
    const generated_code = try RuntimeEmitter.emit(compile_allocator, final_ast);
                           ^

Test Configuration

MUST_FAIL