213 join reference to arm binding 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_213_join_reference_to_arm_binding_refused/input.k:22:5
    |
 22 |     |> show(v: t)
    |     ^
  hint: move this step into the arm body

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 ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "start")

Test Configuration

MUST_ERROR