058 store ambiguous column undrained leaks

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

Code

input.k

Supporting Files

lib/tx.kz

Actual compiler output

error[KORU160]: std/store:new(txns): column *app/lib/tx:Transaction<!active> has 2 ways to discharge and the store cannot pick one for you
  --> tests/regression/600_STDLIB/690_STORE/690_058_store_ambiguous_column_undrained_leaks/input.k:15:0
  hint: say which at the store, where it is static for the program's lifetime: bolt `! discharge item |> app/lib/tx:<discharger>(item.<field>)` onto the declaration and teardown fires it per still-live element

Must contain:

the store cannot pick one

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (txns, capacity: 8, source: tx: *app/lib/tx:Transaction<active!>)
flow ~begin click a branch to expand · @labels scroll to their anchor
begin

Test Configuration

MUST_ERROR