100 obligation record field explicit discharge misdiagnosed under subflow

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

Code

input.kz

Actual compiler output

error[KORU030]: Phantom state mismatch: 'res.h' (parameter 'h') holds no live '<owned!>' obligation to consume here — it was never acquired or has already been discharged. Pass a value that still holds its '<owned!>' obligation.
  --> tests/regression/300_ADVANCED_FEATURES/330_PHANTOM_TYPES/330_100_obligation_record_field_explicit_discharge_misdiagnosed_under_subflow/input.kz:31:0

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

Compiler must reject:

Compilation must fail with a diagnostic.

Flows

subflow ~spin click a branch to expand · @labels scroll to their anchor
make (id)
flow ~spin click a branch to expand · @labels scroll to their anchor
spin (id: 1)

Test Configuration

MUST_ERROR