Skip to content

Commit

Permalink
added test for RT #71466
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmy Zhuo committed Feb 23, 2011
1 parent dd8b0e0 commit a3ccf3d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion S04-statements/loop.t
Expand Up @@ -11,7 +11,7 @@ loop statement tests
=end kwid

plan 12;
plan 13;

# basic loop

Expand Down Expand Up @@ -93,4 +93,7 @@ plan 12;
is $rt65962, '4 5', 'loop with two variables in init works';
}

# RT #71466
eval_lives_ok('class A { has $!to; method x { loop { (:$!to); } } };', 'pair colon syntax in a loop refers to an attribute works');

# vim: ft=perl6

0 comments on commit a3ccf3d

Please sign in to comment.