025 auto discharge disabled

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

Code

input.kz

Supporting Files

fs.kz

Actual compiler output

error[KORU030]: Resource 'app.fs:*File' carries obligation <opened!> was not discharged. Call one of: app.fs:close
  --> tests/regression/300_ADVANCED_FEATURES/330_PHANTOM_TYPES/330_025_auto_discharge_disabled/input.kz:2:0

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

Must contain:

was not discharged

Flows

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

Test Configuration

MUST_ERROR

Compiler Flags:

--auto-discharge=disable