Skip to content

Commit bb87d97

Browse files
author
Tadeusz Sośnierz
committed
Tests for RT #66606
1 parent b8d66dd commit bb87d97

File tree

1 file changed

+8
-0
lines changed
  • S04-statement-modifiers

1 file changed

+8
-0
lines changed

S04-statement-modifiers/for.t

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@ use Test;
100100

101101
eval_dies_ok '1 for <a b> for <c d>;', 'double statement-modifying for is not allowed';
102102

103+
# RT #66606
104+
{
105+
my $x = 1 for ^3;
106+
is $x, 1;
107+
(my @a).push: $_ for ^3;
108+
is @a.join(','), '0,1,2';
109+
}
110+
103111
done;
104112

105113
# vim: ft=perl6

0 commit comments

Comments
 (0)