111 reject consume obligation in output

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

Code

input.kz

Actual compiler output

error[KORU033]: Cannot consume obligation '<!owned>' on output parameter (event: weird). Use '<owned!>' to issue a new obligation, or remove the '!' prefix.
  --> tests/regression/300_ADVANCED_FEATURES/330_PHANTOM_TYPES/330_111_reject_consume_obligation_in_output/input.kz:14:0

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

Backend must reject with:

CONTAINS error[KORU033]
CONTAINS Cannot consume obligation

Flows

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

Test Configuration

MUST_ERROR