005 transaction active nonvoid only

✓ Passing This code compiles and runs correctly.

Code

input.kz

Must contain:

active!

Error Verification

Actual Compiler Output

error[KORU030]: Resource '_auto_0' <active!> was not discharged. Call one of: tx.rollback, tx.commit
  --> auto_discharge:4:0

❌ Compiler coordination error: Auto-discharge failed (multiple disposal options or no disposal event)
error: CompilerCoordinationFailed
/Users/larsde/src/koru/tests/regression/300_ADVANCED_FEATURES/336_OBLIGATION_MATRIX/336_005_transaction_active_nonvoid_only/backend.zig:94:13: 0x1053423b3 in emit (backend)
            return error.CompilerCoordinationFailed;
            ^
/Users/larsde/src/koru/tests/regression/300_ADVANCED_FEATURES/336_OBLIGATION_MATRIX/336_005_transaction_active_nonvoid_only/backend.zig:190:28: 0x10534309f in main (backend)
    const generated_code = try RuntimeEmitter.emit(compile_allocator, final_ast);
                           ^

Imported Files

db.kz

Test Configuration

MUST_FAIL