Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sorear committed Dec 29, 2011
1 parent 8d3c723 commit 18f9e04
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion S04-statements/for.t
Expand Up @@ -13,7 +13,7 @@ for statement as possible
=end description

plan 68;
plan 69;

## No foreach
# L<S04/The C<for> statement/"no foreach statement any more">
Expand Down Expand Up @@ -506,4 +506,12 @@ lives_ok {
is $a, 3, 'RT #78232';
}

# http://irclog.perlgeek.de/perl6/2011-12-29#i_4892285
# (Niecza bug)
{
my $x = 0;
for 1 .. 2 -> $a, $b { $x = $b } #OK not used
is $x, 2, 'Lazy lists interact properly with multi-element for loops';
}

# vim: ft=perl6

0 comments on commit 18f9e04

Please sign in to comment.