015 residual pure effect refused

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

Code

input.kz

Actual compiler output

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

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 ~tokenize click a branch to expand · @labels scroll to their anchor
tokenize (source: "x")

Test Configuration

MUST_ERROR