004 shape error

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

Code

input.kz

Actual compiler output

error[KORU021]: tor 'process' has no branch 'nonexistent' (available: success, warning)
  --> tests/regression/300_ADVANCED_FEATURES/355_OPTIONAL_BRANCHES/355_004_shape_error/input.kz:26:1
    |
 26 | | nonexistent _ |> std/io:print.ln("BAD")
    | ^

Frontend must reject with:

CONTAINS error[KORU021]
CONTAINS has no branch 'nonexistent'

Flows

flow ~process click a branch to expand · @labels scroll to their anchor
process (value: 150)

Test Configuration

MUST_ERROR