054 unspaced minus in branch body

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

Code

input.k

Actual compiler output

error[KORU181]: 'q-b' reads as one name, not subtraction — `-` joins identifiers (kebab), and no 'q-b' is declared
  --> tests/regression/200_COMPILER_FEATURES/220_FLOW_CHECKER/220_054_unspaced_minus_in_branch_body/input.k:13:5
    |
 13 |     | then -> q-b
    |     ^
  hint: write 'q - b' for subtraction

Frontend must reject with:

CONTAINS error[KORU181
CONTAINS reads as one name, not subtraction
CONTAINS write 'q - b' for subtraction

Flows

subflow ~diff click a branch to expand · @labels scroll to their anchor
if (q > 0)
flow ~diff click a branch to expand · @labels scroll to their anchor
diff (q: 10, b: 3)

Test Configuration

MUST_ERROR