005 nested loop inner discharges outer

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

Code

input.k

Supporting Files

fs.kz

Actual compiler output

error[KORU032]: Cannot discharge outer-scope resource 'outermost_f' inside @scope boundary. Handle outside the scope or escape via branch constructor.
  --> tests/regression/300_ADVANCED_FEATURES/335_OBLIGATION_STRESS/335_005_nested_loop_inner_discharges_outer/input.k:15:8

❌ Compiler coordination error: Auto-discharge failed (multiple disposal options or no disposal event)
   (set KORU_BACKEND_TRACE=1 for the backend return trace)

Must contain:

KORU032

Flows

flow ~open click a branch to expand · @labels scroll to their anchor
open (path: "outermost.txt")

Test Configuration

MUST_ERROR