137 effect subflow obligation cannot escape

✓ Passing This code compiles and runs correctly.

Code

input.k

Backend must reject with:

CONTAINS error[KORU030]
CONTAINS was not discharged

Error Verification

Actual Compiler Output

error[KORU030]: Resource 'f' carries obligation <field!> was not discharged. Call: std.field:free
  --> phantom_semantic_check:31:0

❌ Compiler coordination error: Phantom semantic validation failed
error: CompilerCoordinationFailed
/Users/larsde/src/koru/tests/regression/400_RUNTIME_FEATURES/400_137_effect_subflow_obligation_cannot_escape/backend.zig:95:13: 0x100d539d3 in emit (backend)
            return error.CompilerCoordinationFailed;
            ^
/Users/larsde/src/koru/tests/regression/400_RUNTIME_FEATURES/400_137_effect_subflow_obligation_cannot_escape/backend.zig:202:28: 0x100d54b63 in main (backend)
    const generated_code = try RuntimeEmitter.emit(compile_allocator, final_ast);
                           ^

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_FAIL

Compiler Flags:

--auto-discharge=disable