Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
make sure .[] decontainerizes
  • Loading branch information
TimToady committed Feb 28, 2015
1 parent 08174d6 commit 51c3b8e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions S02-types/array.t
Expand Up @@ -298,6 +298,11 @@ my @array2 = ("test", 1, Mu);
{
my @a = <1 2 3>;
is @a[*], <1 2 3> , 'using * to access all array elements works';
is @a[], <1 2 3>, 'using [] to listify all array elements works';
is @a[].gist, '(List)', 'using [] is equivalent to .list';

my $a = (1,2,3);
is ($a[] X~ 'a'), '1a 2a 3a', 'using [] decontainerizes';
}

#RT #73402
Expand Down

0 comments on commit 51c3b8e

Please sign in to comment.