The %*VM hash has the following structure
%*VM = (
config => {
'-Wcomment' => 1,
'-Wall' => 1,
# many more items here
}
);
as can easily be seen by %*VM.perl, and $*VM.keys has one item. However
iterating over $*VM.kv shows more than one key:
$ perl6 -e 'my $keys = 0; for %*VM.kv -> $k, $v { $keys++}; say $keys'
141
Somehow the inner hash is flattened. Using a normal hash I couldn't
reproduce
this behaviour.
Cheers,
Moritz
Now fixed in 6c6299f:
$ ./perl6 -e 'my $keys = 0; for %*VM.kv -> $k, $v { $keys++}; say $keys'
1
I'll pass this back to moritz++ to decide if this needs a spectest to
close the ticket.
Pm