generated/1725/a collection key written twice

sha256 2924021280aa4199e8d28956d8f7509ba1e192bdd2b35ecc5fccf9eda1eadb53

Document

%YAML 1.1
---
base: &m1
  b0: 0x2
item: !!map
  !!merge <<: &m2
    c0: 0x9
    c1: -6
  d0: -1
  ! d1: 0x0
again: *m2
?
  - >2-
    base
: >2-
  dup
?
  - >2-
    base
: >2-
  dup2

Corpus

grammarvalid, vouched for up to construct
encoding/bomopen from parse on: each parser's stance decides
key/duplicatereject from parse on, 3.2.1.1: it is an error for two equal keys to appear in the same mapping node
featuresencoding/byte-order-mark node/alias node/anchor node/tag-non-specific node/tag-shorthand presentation/block-folded presentation/block-indicator presentation/document-marker presentation/explicit-key presentation/key-below-the-indicator presentation/number-hex presentation/plain presentation/yaml-directive value/int value/mapping value/merge-key value/non-string-key value/string
meaning (none stated)

Answer groups

verdict split

go-yaml yaml.v3 yamlstar

refuse by the loader

libfyaml

accept, then the loader refuses past parse

perlref

accept

value

No source answered.

roundtrip

No source answered.

Each parser

parserverdictvalueround tripreasonmessage
perlref accepted accept n/i n/i
libfyaml accepted refuse by the loader not scored n/i TypeError: unhashable type: 'sequence'
yamlstar rejected, explained refuse by the loader not scored n/i tag-without-constructor: the loader builds values for the core schema's tags only, and rejects any other tag, local or global: "!foo", "!!merge", "!!timestamp", "!!binary" Error: Unknown tag: tag:yaml.org,2002:merge
yaml.v3 rejected, settled refuse by the loader not scored refused key/duplicate: 3.2.1.1: it is an error for two equal keys to appear in the same mapping node yaml.v3: yaml: unmarshal errors:
go-yaml rejected, settled refuse by the loader not scored refused key/duplicate: 3.2.1.1: it is an error for two equal keys to appear in the same mapping node [13:3] a sequence cannot be a JSON key

Corpus compact, 28279 cases, yamlcorpus/48. Run 2026-11-26 22:12 UTC, 23m30s.