029 kebab member position falls to host

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

Code

input.k

Actual compiler output

error[KORU182]: 'p.x-c' reads as the field name 'x-c', not subtraction — `-` joins identifiers (kebab), and 'p' has no field 'x-c'
  --> tests/regression/200_COMPILER_FEATURES/230_EMITTER/230_029_kebab_member_position_falls_to_host/input.k:24:1
    |
 24 | use -> p.x-c
    | ^
  hint: for subtraction write the segments spaced: 'x - c'

Frontend must reject with:

CONTAINS error[KORU182
CONTAINS reads as the field name 'x-c', not subtraction
CONTAINS 'p' has no field 'x-c'
CONTAINS 'x - c'

Flows

flow ~mk click a branch to expand · @labels scroll to their anchor
mk

Test Configuration

MUST_ERROR