166 undeclared branch rejected without annotation

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

Code

input.k

Actual compiler output

error[KORU021]: tor 'run' has no branch 'soon' (available: done, err)
  --> tests/regression/400_RUNTIME_FEATURES/400_166_undeclared_branch_rejected_without_annotation/input.k:21:0
    |
 21 | | soon |> std/io:print.ln("undeclared arm — must be KORU021 without [prototype]")
    | ^

Must fail at frontend compile:

Parsing or type-checking must reject the program.

Error output must contain

KORU021

Flows

flow ~run click a branch to expand · @labels scroll to their anchor
run

Test Configuration

MUST_ERROR