Skip to content
Go to file
Cannot retrieve contributors at this time
25 lines (21 sloc) 392 Bytes
=== Scalar value with two anchors
--- from: @perlpunk
--- tags: anchor error mapping
This test shows a valid structure in the first pair but the second pair is
invalid because it has two anchors for the scalar value.
--- in-yaml
top1: &node1
&k1 key1: val1
top2: &node2
&v2 val2
--- error
--- test-event
=VAL :top1
+MAP &node1
=VAL &k1 :key1
=VAL :val1
=VAL :top2