21 open tx forgot close

✓ Passing This code compiles and runs correctly.

Code

input.kz

Must contain:

not discharged

Error Verification

Actual Compiler Output

error[KORU030]: Resource '_' <active!> was not discharged. Call one of: app.db:close[!], app.db:tx.begin
  --> phantom_semantic_check:10:0

❌ Compiler coordination error: Phantom semantic validation failed
error: CompilerCoordinationFailed
/Users/larsde/src/koru/tests/regression/900_EXAMPLES_SHOWCASE/910_LANGUAGE_SHOOTOUT/2104_21_open_tx_forgot_close/backend.zig:94:13: 0x1024964bf in emit (backend)
            return error.CompilerCoordinationFailed;
            ^
/Users/larsde/src/koru/tests/regression/900_EXAMPLES_SHOWCASE/910_LANGUAGE_SHOOTOUT/2104_21_open_tx_forgot_close/backend.zig:190:28: 0x1024971ab in main (backend)
    const generated_code = try RuntimeEmitter.emit(compile_allocator, final_ast);
                           ^

Imported Files

db.kz

Test Configuration

MUST_FAIL

Compiler Flags:

--auto-discharge=disable