201 arm diagnostic locates the arm

✗ Failing This test is currently failing.

Failed: wrong-error

Failure 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:62:0

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

Code

input.k

Must fail at runtime with:

CONTAINS KORU021
CONTAINS has no branch 'nosuchbranch'
ERROR_AT 34

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)