Changeset 22043
- Timestamp:
- 08/27/08 16:20:05 (3 months ago)
- Files:
-
- 1 modified
-
t/spec/S04-statements/for.t (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
t/spec/S04-statements/for.t
r21953 r22043 12 12 =end description 13 13 14 plan 39;14 plan 40; 15 15 16 16 ## No foreach … … 298 298 is($a, 'ArrayArray', 'List context'); 299 299 } 300 301 { 302 # this was a rakudo bug with mixed 'for' and recursion, which seems to 303 # confuse some lexical pads or the like. 304 my $gather = ''; 305 sub f($l) { 306 if $l <= 0 { 307 return $l; 308 } 309 $gather ~= $l; 310 for 1..3 { 311 f($l-1); 312 $gather ~= '.'; 313 } 314 } 315 f(2); 316 317 #?rakudo todo 'bug in for/recursion interaction, RT #58392' 318 is $gather, '21....1....1....', 'Can mix recursion and for'; 319 } 320
