007 use after disposal

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

Code

input.k

Supporting Files

fs.kz

Actual compiler output

error[KORU030]: Use-after-discharge: binding 'f' was already discharged and cannot be used
  --> tests/regression/300_ADVANCED_FEATURES/330_PHANTOM_TYPES/330_007_use_after_disposal/input.k:2:0

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

Must contain:

Use-after-discharge

Flows

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

Test Configuration

MUST_ERROR