104 undrainable column reports once

✗ Failing This test is currently failing.

Failed: wrong-error

Failure Output

error[KORU160]: store 'batch': column *app/lib/pend:Pending cannot be auto-discharged — every exit from <open!> in app/lib/pend returns a value or carries branches
  --> tests/regression/600_STDLIB/690_STORE/690_104_undrainable_column_reports_once/input.k:5:0
  hint: a store disposes elements unattended at teardown, where there is nobody to take a return value or answer a branch — so drain it by hand: bolt `! discharge item |> app/lib/pend:<exit>(item.<field>)` onto the declaration. The arm is ordinary Koru, so pipe whatever sequence the type needs and its own obligations settle normally

error[KORU161]: std/store:new(batch): column *app/lib/pend:Pending has 0 dischargers for <!open> (ambiguous) - the store cannot pick one, so it must be DRAINED: bolt a `! discharge item |> ...` handler onto the store declaration to discharge each still-live element at teardown
  --> tests/regression/600_STDLIB/690_STORE/690_104_undrainable_column_reports_once/input.k:5:0

Code

input.k

Must contain:

cannot be auto-discharged

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (expr: batch, capacity: 2, source: *app/lib/pend:Pending<open!>)
flow ~start click a branch to expand · @labels scroll to their anchor
start

Imported Files

lib/pend.kz