016 residual bare return refused

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

Code

input.kz

Actual compiler output

error[KORU026]: residual arm '|*' on 'mk' has no '|' outcome branches to catch — it routes optional outcome branches only
  --> tests/regression/300_ADVANCED_FEATURES/355_OPTIONAL_BRANCHES/355_016_residual_bare_return_refused/input.kz:18:0
    |
 18 | ~mk(x: 1)
    | ^

Must fail at frontend compile:

Parsing or type-checking must reject the program.

Error output must contain

has no '|' outcome branches to catch

Flows

flow ~mk click a branch to expand · @labels scroll to their anchor
mk (x: 1)

Test Configuration

MUST_ERROR