08 close without transaction

✓ Passing This code compiles and runs correctly.

Code

input.kz

Must contain:

Phantom state mismatch

Error Verification

Expected Error Pattern

state mismatch

Actual Compiler Output ✓ Pattern matched

error[KORU030]: Phantom state mismatch: expected 'app.db:active' but got 'app.db:connected!' for argument 'conn'
  --> phantom_semantic_check:15:0

error[KORU030]: Resource 'c' <connected!> was not discharged. Call: app.db:begin
  --> phantom_semantic_check:15:0

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

Imported Files

db.kz

Test Configuration

MUST_FAIL