Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Tests for RT #126424.
  • Loading branch information
jnthn committed Dec 13, 2015
1 parent 30a3a5f commit d2bc215
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion S04-statements/gather.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 34;
plan 36;

# L<S04/The C<gather> statement prefix/>

Expand Down Expand Up @@ -272,4 +272,11 @@ plan 34;
'take on a listy expression takes each element of that list';
}

# RT #126424
{
my $l = gather { take-rw my $ = 1 };
lives-ok { $l.AT-POS(0) = 42 }, 'AT-POS on gather Seq with take-rw value lives';
is $l.AT-POS(0), 42, 'AT-POS on gather Seq with take-rw value works';
}

# vim: ft=perl6

0 comments on commit d2bc215

Please sign in to comment.