005 transaction active nonvoid only

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

Code

input.k

Supporting Files

db.kz

Actual compiler output

error[KORU030]: Resource '*Transaction' obligation <active!> was not discharged. Call one of: tx.rollback, tx.commit
  --> tests/regression/300_ADVANCED_FEATURES/336_OBLIGATION_MATRIX/336_005_transaction_active_nonvoid_only/input.k:4:0

❌ Compiler coordination error: Auto-discharge failed (multiple disposal options or no disposal event)
   (set KORU_BACKEND_TRACE=1 for the backend return trace)

Must contain:

active!

Flows

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

Test Configuration

MUST_ERROR