Skip to content

Commit

Permalink
Add test for RT #115598
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Nov 14, 2012
1 parent a458713 commit f966c11
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion S04-statements/gather.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 21;
plan 22;


# L<S04/The C<gather> statement prefix/>
Expand Down Expand Up @@ -195,4 +195,11 @@ plan 21;
is ~@outer, "5 1 2 3 5", "method form of take works.";
}

# RT #115598
{
my $x;
my @a = gather { $x = take 3; };
is $x, 3, "return value of take"
}

# vim: ft=perl6

0 comments on commit f966c11

Please sign in to comment.