Skip to content

Commit

Permalink
Add passing test for RT #78232
Browse files Browse the repository at this point in the history
  • Loading branch information
Tadeusz Sośnierz committed Nov 12, 2011
1 parent fe4c35b commit 16bc94a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions S04-statements/for.t
Expand Up @@ -503,6 +503,13 @@ lives_ok {
for 1 .. 5 -> $x, $y? { }
}, 'Iteration variables do not need to add up if one is optional';

# RT #78232
{
my $a = 0;
for 1, 2, 3 { sub foo {}; $a++ }
is $a, 3, 'RT #78232';
}

done;

# vim: ft=perl6

0 comments on commit 16bc94a

Please sign in to comment.