Skip to content

Commit

Permalink
More fixes for flattening/single arg rule.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Aug 13, 2015
1 parent ff190ce commit bb63a50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions S02-types/assigning-refs.t
Expand Up @@ -43,10 +43,10 @@ plan 18;
{
my $hashref = {:a(1), :b(2), :c(3)};
my %hash;
try { %hash = ($hashref) };
try { %hash = ($hashref,) };

#?niecza todo
is +%hash, 0, '%hash = ($hashref) does not flatten the hashref';
is +%hash, 0, '%hash = ($hashref,) does not flatten the hashref';
}

{
Expand All @@ -55,7 +55,7 @@ plan 18;
try { %hash = $hashref };

#?niecza todo
is +%hash, 0, '%hash = $hashref does not flatten the hashref';
is +%hash, 0, '%hash = $hashref works due to single argument rule';
}

# Same as above, but now we never use arrays, but only array*refs*.
Expand Down

0 comments on commit bb63a50

Please sign in to comment.