288 bare return fused record refused

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

Code

input.k

Actual compiler output

error[PARSE003]: malformed record value `{ a: 1 b: 2 }` in the bare return — missing comma — 'b: 2' began a new field but was read as part of the field above it; separate fields with commas
  --> tests/regression/200_COMPILER_FEATURES/210_PARSER/210_288_bare_return_fused_record_refused/input.k:8:0
    |
  8 | f -> { a: 1 b: 2 }
    | ^

Frontend must reject with:

CONTAINS error[PARSE003]
CONTAINS malformed record value
CONTAINS missing comma
CONTAINS 'b: 2'
ERROR_AT 8
NOT_CONTAINS output_emitted.zig

Flows

flow ~f click a branch to expand · @labels scroll to their anchor
f (a: 4)

Test Configuration

MUST_ERROR