032 composite kind partial settle

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

Code

input.k

Supporting Files

lib/res.kz

Actual compiler output

error[KORU030]: Resource 'r2' obligation <owned!> was not discharged. No tor accepts <!owned>.
  --> tests/regression/600_STDLIB/699_CHANNEL/699_032_composite_kind_partial_settle/input.k:22: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 fail at runtime with:

CONTAINS r2
CONTAINS not discharged

Error output must contain

r2

Flows

flow ~std/proto click a branch to expand · @labels scroll to their anchor
std/proto (Env, source: r1: *app/lib/res:Resource<owned!> r2: *app/lib/res:Resource<owned!>)
flow ~new click a branch to expand · @labels scroll to their anchor
new (expr: inbox, capacity: 8, source: env: Env)
flow ~std/channel click a branch to expand · @labels scroll to their anchor
std/channel (inbox)
flow ~new click a branch to expand · @labels scroll to their anchor
new
flow ~create click a branch to expand · @labels scroll to their anchor
create (expr: main)
flow ~std/pump click a branch to expand · @labels scroll to their anchor
std/pump (main)
flow ~run click a branch to expand · @labels scroll to their anchor
run (main)

Test Configuration

MUST_ERROR