generated/2099/a collection key written twice

sha256 372493f708bae4e9f8379e9cf457432f0208c59a5402737900185ecbf9b2bd0f

Document

%YAML 1.2
---
'0b1010': &a1 NULL
*a1 : |-
   aliased
?
   - |-
      0b1010
: |-
   dup
?
   - |-
      0b1010
: |-
   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 presentation/block-literal presentation/document-marker presentation/explicit-key presentation/key-below-the-indicator presentation/plain presentation/quoted-single presentation/yaml-directive value/mapping value/non-string-key value/null value/string
meaning (none stated)

Answer groups

verdict split

go-yaml

refuse by the loader

libfyaml

accept, then the loader refuses past parse

perlref yamlstar

accept

yaml.v3

refuse by the parser

value

yamlstar

{"0b1010":null,"[\"0b1010\"]":"dup2","null":"aliased"}

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 accepted accept not scored n/i
yaml.v3 rejected, settled refuse by the parser 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: found incompatible YAML document
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 [7:4] a sequence cannot be a JSON key

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