On Mon, 18 Sep 2017 07:26:39 -0700, c...@zoffix.com wrote:
> The .perl of a default Hash correctly shows when the hash has been
> scalarized:
> 
> $ perl6 -e 'my %h := {:42a}; my $h = %h; say %h.perl; say $h.perl'
> {:a(42)}
> ${:a(42)}
> 
> 
> However, the same distinction does not show up when using a
> parametarized Hash:
> 
> $ perl6 -e 'my %h := :{:42a}; my $h = %h; say %h.perl; say $h.perl'
> :{:a(42)}
> :{:a(42)}
> 
> $ perl6 -e 'my %h := Hash[Int,Str].new: :42a.Pair; my $h = %h; say
> %h.perl; say $h.perl'
> (my Int %{Str} = :a(42))
> (my Int %{Str} = :a(42))
> 
> 
> It should show $(:{:a(42)}) and, I'm guessing, $(my Int %{Str} =
> :a(42)) for $h


skids++ fixed in https://github.com/rakudo/rakudo/pull/1163
Tests in https://github.com/perl6/roast/pull/325

Reply via email to