009 if arm obligation merge

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

Code

input.k

Supporting Files

lib/post.kz
lib/stamps.k

Actual compiler output

error[KORU030]: Resource 'p' obligation <held!> was not discharged. No tor accepts <!held>.
  --> tests/regression/800_CHALLENGES/800_009_if_arm_obligation_merge/input.k:29:8

❌ 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:

Program must error when executed.

Error output must contain

obligation <held!> was not discharged

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (board, source: n: 0[i64])
subflow ~go click a branch to expand · @labels scroll to their anchor
for (0..@as(usize, 2))
flow ~go click a branch to expand · @labels scroll to their anchor
go

Test Configuration

MUST_ERROR