127 arm owns obligation leak

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

Code

input.kz

Actual compiler output

error[KORU030]: Resource 'h0' carries obligation <owned!> was not discharged. Call one of: input:drop
  --> tests/regression/300_ADVANCED_FEATURES/330_PHANTOM_TYPES/330_127_arm_owns_obligation_leak/input.kz:37:4

error[KORU030]: Resource 'g' carries obligation <owned!> was not discharged. Call one of: input:drop
  --> tests/regression/300_ADVANCED_FEATURES/330_PHANTOM_TYPES/330_127_arm_owns_obligation_leak/input.kz:37:4

❌ Compiler coordination error: Phantom semantic validation failed
   (set KORU_BACKEND_TRACE=1 for the backend return trace)

Must contain:

carries obligation <owned!> was not discharged

Flows

flow ~mk click a branch to expand · @labels scroll to their anchor
mk

Test Configuration

MUST_ERROR

Compiler Flags:

--auto-discharge=disable