137 effect subflow obligation cannot escape

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

Code

input.k

Actual compiler output

error[KORU030]: Resource 'f' carries obligation <field!> was not discharged. Call: std.field:free
  --> tests/regression/400_RUNTIME_FEATURES/400_137_effect_subflow_obligation_cannot_escape/input.k:32:4

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

Backend must reject with:

CONTAINS error[KORU030]
CONTAINS was not discharged

Flows

subflow ~gen click a branch to expand · @labels scroll to their anchor
for (0..n)
flow ~gen click a branch to expand · @labels scroll to their anchor
gen (n: 3)

Test Configuration

MUST_ERROR

Compiler Flags:

--auto-discharge=disable