291 invocation arg 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 call arguments — 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_291_invocation_arg_fused_record_refused/input.k:13:0
    |
 13 | f(p: { a: 1 b: 2 })
    | ^

Frontend must reject with:

CONTAINS error[PARSE003]
CONTAINS missing comma
CONTAINS 'b: 2'
ERROR_AT 13
NOT_CONTAINS output_emitted.zig

Flows

flow ~f click a branch to expand · @labels scroll to their anchor
f (p: { a: 1 b: 2 })

Test Configuration

MUST_ERROR