295 ctor nameless field refused

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

Code

input.k

Actual compiler output

error[PARSE003]: field has no name — a field is `name: value` or a bare punnable name; `: value` dropped the name
  --> tests/regression/200_COMPILER_FEATURES/210_PARSER/210_295_ctor_nameless_field_refused/input.k:10:1
    |
 10 | f => ok { a: 1, : 2 }
    | ^

Frontend must reject with:

CONTAINS error[PARSE003]
CONTAINS field has no name
ERROR_AT 10
NOT_CONTAINS output_emitted.zig

Test Configuration

MUST_ERROR