21 open tx forgot close

✓ Passing Passing: the compiler rejects this program as expected.

Code

input.kz

Supporting Files

db.kz

Actual compiler output

error[KORU030]: Resource '_' carries obligation <active!> was not discharged. Call one of: app.db:close, app.db:tx.begin
  --> tests/regression/900_EXAMPLES_SHOWCASE/910_LANGUAGE_SHOOTOUT/2104_21_open_tx_forgot_close/input.kz:13:0

❌ Compiler coordination error: Phantom semantic validation failed
   (set KORU_BACKEND_TRACE=1 for the backend return trace)

Must contain:

not discharged

Flows

flow ~open click a branch to expand · @labels scroll to their anchor
open (connstr: "postgres://localhost/test")

Test Configuration

MUST_ERROR

Compiler Flags:

--auto-discharge=disable