125 transferred obligation dropped in body

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

Code

input.kz

Actual compiler output

error[KORU030]: Resource 'h' obligation <owned!> was not discharged at scope exit.
  --> tests/regression/300_ADVANCED_FEATURES/330_PHANTOM_TYPES/330_125_transferred_obligation_dropped_in_body/input.kz:54: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:

was not discharged

Flows

subflow ~drop-it click a branch to expand · @labels scroll to their anchor
note (n: 1)
flow ~make click a branch to expand · @labels scroll to their anchor
make

Test Configuration

MUST_ERROR