Skip to content

Commit

Permalink
Tests for RT #66606
Browse files Browse the repository at this point in the history
  • Loading branch information
Tadeusz Sośnierz committed Sep 14, 2011
1 parent b8d66dd commit bb87d97
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions S04-statement-modifiers/for.t
Expand Up @@ -100,6 +100,14 @@ use Test;

eval_dies_ok '1 for <a b> for <c d>;', 'double statement-modifying for is not allowed';

# RT #66606
{
my $x = 1 for ^3;
is $x, 1;
(my @a).push: $_ for ^3;
is @a.join(','), '0,1,2';
}

done;

# vim: ft=perl6

0 comments on commit bb87d97

Please sign in to comment.