025 stale tx after commit

✓ Passing This code compiles and runs correctly.

Code

input.kz

Must contain:

Use-after-discharge

Error Verification

Actual Compiler Output

error[KORU030]: Use-after-discharge: binding 'tx' was already discharged and cannot be used
  --> phantom_semantic_check:13:0

❌ Compiler coordination error: Phantom semantic validation failed
error: CompilerCoordinationFailed
/Users/larsde/src/koru/tests/regression/300_ADVANCED_FEATURES/335_OBLIGATION_STRESS/335_025_stale_tx_after_commit/backend.zig:94:13: 0x10310e3b3 in emit (backend)
            return error.CompilerCoordinationFailed;
            ^
/Users/larsde/src/koru/tests/regression/300_ADVANCED_FEATURES/335_OBLIGATION_STRESS/335_025_stale_tx_after_commit/backend.zig:190:28: 0x10310f09f in main (backend)
    const generated_code = try RuntimeEmitter.emit(compile_allocator, final_ast);
                           ^

Imported Files

db.kz

Test Configuration

MUST_FAIL