# New Ticket Created by Moritz Lenz
# Please include the string: [perl #117431]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=117431 >
21:13 < lizmat> rn: my %bar= <foo baz>; say item %bar
21:13 <+p6eval> niecza v24-35-g5c06e28: OUTPUT«{"foo" => "baz"}»
21:13 <+p6eval> ..rakudo ffe441: OUTPUT«("foo" => "baz").hash»
21:13 < moritz> rakudo's looks wrong to me
21:14 <+p6eval> rakudo ffe441, niecza v24-35-g5c06e28: OUTPUT«2»
21:14 < moritz> nr: my %bar = <a b c d>; my $c = 0; ++$c for item %bar;
say $c
21:14 <+p6eval> rakudo ffe441: OUTPUT«2»
21:14 <+p6eval> ..niecza v24-35-g5c06e28: OUTPUT«1»
21:14 < moritz> niecza is right here, and rakudo is wrong
21:14 * moritz submits rakudobug
iterating over an itemized $anything should result in just one
iteration, which is why rakudo's output is wrong.
Cheers,
Moritz