020 label jump obligation

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

Code

input.kz

Actual compiler output

error[KORU030]: Phantom state mismatch: 'o' (parameter 'res') holds state 'input:open' with no obligation attached — '<!open>' settles a debt, and this value never incurred one.
  --> tests/regression/300_ADVANCED_FEATURES/370_PHANTOM_TYPES/370_020_label_jump_obligation/input.kz:52:4

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

Must contain:

Phantom state mismatch

Flows

flow ~create click a branch to expand · @labels scroll to their anchor
#loop create

Test Configuration

MUST_ERROR