Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
RT #78406, block parameter ro/rw issues
  • Loading branch information
moritz committed Jan 4, 2013
1 parent b428149 commit 06074b4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion S04-statements/for.t
Expand Up @@ -14,7 +14,7 @@ for statement as possible
=end description

plan 73;
plan 75;

## No foreach
# L<S04/The C<for> statement/"no foreach statement any more">
Expand Down Expand Up @@ -556,4 +556,11 @@ lives_ok {
'array expanded in for loop is expanded';
}

# RT #78406
{
my $c = 0;
dies_ok { for ^8 { .=fmt('%03b'); $c++ } }, '$_ is read-only here';
is $c, 0, '... and $_ is *always* read-only here';
}

# vim: ft=perl6

0 comments on commit 06074b4

Please sign in to comment.