007 chain second err leaks first resource

✗ Failing This test is currently failing.

Failed: wrong-error

Failure Output

Showing last 10 of 11 lines
  --> tests/regression/300_ADVANCED_FEATURES/335_OBLIGATION_STRESS/335_007_chain_second_err_leaks_first_resource/input.kz:23:0

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

Code

input.kz

Must contain:

was not discharged

Error Verification

Actual Compiler Output

error[KORU021]: event 'app.db:query' has no branch 'err' (available: started)
  --> tests/regression/300_ADVANCED_FEATURES/335_OBLIGATION_STRESS/335_007_chain_second_err_leaks_first_resource/input.kz:23:0

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

Imported Files

db.kz

Test Configuration

MUST_FAIL