shadowing rejected

○ Planned This feature is planned but not yet implemented.

This should be done, it is lazily handled by the Zig-compiler, look at the README.md-file in this directory for the problem.

Failure Output

error[KORU106]: 'r' is already bound at line 33 — this bind would shadow it, and Koru has no shadowing
  --> tests/regression/000_CORE_LANGUAGE/040_CONTROL_FLOW/202c_shadowing_rejected/input.kz:33:0
    |
 33 | ~first(value: 10): r |> second(value: r.num): r |> show(outer_val: r.num, inner_val: r.num)
    | ^
  hint: give the second bind a different name, or drop it and keep using the one already in scope

Code

input.kz

Flows

flow ~first click a branch to expand · @labels scroll to their anchor
first (value: 10)

Test Configuration

Expected Error:

error: capture 'r' shadows capture from outer scope