Login
The for loop TODO test for RequireFinalReturn wasn't quite
authorElliot Shank <perl@galumph.com>
Thu, 10 Jul 2008 03:47:02 +0000 (03:47 +0000)
committerElliot Shank <perl@galumph.com>
Thu, 10 Jul 2008 03:47:02 +0000 (03:47 +0000)
valid: You've got to name the loop variable.

t/Subroutines/RequireFinalReturn.run

index 69593d0..fac810e 100644 (file)
@@ -155,7 +155,7 @@ sub baz  { quit }
 ## cut
 
 sub foo {
-    for qw<blah> {}
+    for my $thingy qw<blah> {}
 
     return;
 }