273 destructure dup across nesting refused

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

Code

input.kz

Actual compiler output

error[PARSE010]: field 'x' is bound twice in the destructure — a field list takes each name once
  --> tests/regression/200_COMPILER_FEATURES/210_PARSER/210_273_destructure_dup_across_nesting_refused/input.kz:19:0
    |
 19 | | found { user: { x }, x } |> std/io:print.ln("x = {{ x:d }}")
    | ^
  hint: drop one, or rename it — the list cannot carry two 'x'

Frontend must reject with:

CONTAINS error[PARSE010]
CONTAINS 'x'
CONTAINS bound twice
ERROR_AT 19
NOT_CONTAINS output_emitted.zig

Flows

flow ~fetch click a branch to expand · @labels scroll to their anchor
fetch (id: 1)

Test Configuration

MUST_ERROR