214 sibling arm reference refused

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

Code

input.k

Actual compiler output

error[KORU108]: 't' is not in scope here — it is bound by '| img t', and an arm's bindings end with that arm
  --> tests/regression/400_RUNTIME_FEATURES/400_214_sibling_arm_reference_refused/input.k:20:1
    |
 20 | | err e |> show(v: t)
    | ^
  hint: move this step into the arm body

error[KORU100]: unused binding 'e'
  --> tests/regression/400_RUNTIME_FEATURES/400_214_sibling_arm_reference_refused/input.k:20:1
    |
 20 | | err e |> show(v: t)
    | ^
  hint: discard the binding using `_` if not needed

Must fail at frontend compile:

Parsing or type-checking must reject the program.

Error output must contain

error[KORU108]: 't' is not in scope here

Flows

subflow ~load click a branch to expand · @labels scroll to their anchor
if (n < 0)
subflow ~show click a branch to expand · @labels scroll to their anchor
print.ln (expr: "v {{ v:d }}")
flow ~load click a branch to expand · @labels scroll to their anchor
load (n: 3)

Test Configuration

MUST_ERROR