007 flow checker missing else

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

Code

input.kz

Actual compiler output

error[KORU050]: branch 'high' has when-guarded handlers but no else case - a fire where every guard is false silently does nothing; add one continuation without 'when'
  --> tests/regression/200_COMPILER_FEATURES/210_PARSER/210_007_flow_checker_missing_else/input.kz:16:0

error[KORU030]: branch 'low' has payload but no binding
  --> tests/regression/200_COMPILER_FEATURES/210_PARSER/210_007_flow_checker_missing_else/input.kz:19:0

❌ Compiler coordination error: Incomplete branch coverage
   (set KORU_BACKEND_TRACE=1 for the backend return trace)

Must fail at runtime with:

CONTAINS error[KORU050]
CONTAINS branch 'high' has when-guarded handlers but no else case

Flows

flow ~check click a branch to expand · @labels scroll to their anchor
check (x: 10, y: 5)

Test Configuration

MUST_ERROR