042 read file no free

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

Code

input.kz

Actual compiler output

error[KORU030]: Resource 'content' carries obligation <allocated!> was not discharged. Call one of: std.io:free
  --> tests/regression/300_ADVANCED_FEATURES/335_OBLIGATION_STRESS/335_042_read_file_no_free/input.kz:20:0

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

Must contain:

KORU030

Flows

flow ~read-file click a branch to expand · @labels scroll to their anchor
read-file (path: "data.txt")

Test Configuration

MUST_ERROR

Compiler Flags:

--auto-discharge=disable