052 unspaced minus joins bound names

✓ 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_052_unspaced_minus_joins_bound_names/input.k:15:5
    |
 15 |     | done _ -> 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
pick
flow ~diff click a branch to expand · @labels scroll to their anchor
diff (q: 10, b: 3)

Test Configuration

MUST_ERROR