079 reject double consume carried

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

Code

input.kz

Actual compiler output

error[KORU030]: Use-after-discharge: binding 'v' was already discharged and cannot be used
  --> tests/regression/300_ADVANCED_FEATURES/330_PHANTOM_TYPES/330_079_reject_double_consume_carried/input.kz:37:0

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

Must fail at runtime with:

CONTAINS error[KORU030]
CONTAINS Use-after-discharge

Flows

subflow ~spin click a branch to expand · @labels scroll to their anchor
#loop step (h)
flow ~make click a branch to expand · @labels scroll to their anchor
make

Test Configuration

MUST_ERROR