009 unused binding error

✓ Passing This code compiles and runs correctly.

Code

input.kz

Must fail at frontend compile:

Parsing or type-checking must reject the program.

Expected compiler error

error[KORU100]: unused binding 'f'
  --> tests/regression/200_COMPILER_FEATURES/220_FLOW_CHECKER/220_009_unused_binding_error/input.kz:14:0
    |
 14 | | opened f |> _
    | ^
  hint: discard the binding using `_` if not needed

Error Verification

Expected Error Pattern

error[KORU100]: unused binding

Actual Compiler Output ✓ Pattern matched

error[KORU100]: unused binding 'f'
  --> tests/regression/200_COMPILER_FEATURES/220_FLOW_CHECKER/220_009_unused_binding_error/input.kz:14:0
    |
 14 | | opened f |> _
    | ^
  hint: discard the binding using `_` if not needed

Imported Files

fs.kz

Test Configuration

MUST_FAIL