phantom state mismatch

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

Code

input.kz

Actual compiler output

error[KORU030]: Phantom state mismatch: expected 'input:closed' but got 'input:open' for argument 'file'
  --> tests/regression/300_ADVANCED_FEATURES/330_PHANTOM_TYPES/909_phantom_state_mismatch/input.kz:14:1

Must contain:

error[KORU030]

Flows

flow ~open-file click a branch to expand · @labels scroll to their anchor
open-file

Test Configuration

MUST_ERROR