055 bare state return aliases the borrow

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

Code

input.k

Supporting Files

h.kz

Actual compiler output

error[KORU030]: Phantom state mismatch: 'y' (parameter 'h') holds state 'app.h:issue' with no obligation attached — '<!issue>' settles a debt, and this value never incurred one.
  --> tests/regression/300_ADVANCED_FEATURES/335_OBLIGATION_STRESS/335_055_bare_state_return_aliases_the_borrow/input.k:44:0

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

Must contain:

obligation

Flows

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

Test Configuration

MUST_ERROR