201 arm diagnostic locates the arm

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

Code

input.k

Actual compiler output

error[KORU021]: tor 'divide' has no branch 'nosuchbranch' (declared branches are: ok, divzero)
  --> tests/regression/200_COMPILER_FEATURES/210_PARSER/210_201_arm_diagnostic_locates_the_arm/input.k:61:0

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

Must fail at runtime with:

CONTAINS KORU021
CONTAINS has no branch 'nosuchbranch'
ERROR_AT 61

Flows

subflow ~divide click a branch to expand · @labels scroll to their anchor
if (b == 0)
flow ~divide click a branch to expand · @labels scroll to their anchor
divide (a: 84, b: 2)

Test Configuration

MUST_ERROR