Skip to content

Commit

Permalink
RT #127879; map inside sunk 'for' runs as sunk
Browse files Browse the repository at this point in the history
  • Loading branch information
TimToady committed Aug 9, 2016
1 parent 25869eb commit b6012e0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion S04-statements/sink.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 3;
plan 4;

# RT #117235
{
Expand All @@ -21,3 +21,10 @@ plan 3;
my ($a) = class { method sink { $sunk = True } }.new;
is $sunk, False, 'my ($a) = ... does not trigger sinking';
}

# RT #127879
{
my @results = gather for 1..1 { ^10 .map: *.take }

is @results, "0 1 2 3 4 5 6 7 8 9", "map inside sunk 'for' runs as sunk";
}

0 comments on commit b6012e0

Please sign in to comment.