There is no longer a Null PMC access error when hitting 'last' in code block in 
regex in loop:

$ perl6-m -e 'repeat while False { "foo" ~~ / "f" { say "got here" } "o" { last 
} / }; say "after the loop"'
got here
after the loop

$ perl6-p -e 'repeat while False { "foo" ~~ / "f" { say "got here" } "o" { last 
} / }; say "after the loop"'
got here
after the loop

$ perl6-j -e 'repeat while False { "foo" ~~ / "f" { say "got here" } "o" { last 
} / }; say "after the loop"'
got here
after the loop

I added a test to S04-statements/last.t with the following commit: 
https://github.com/perl6/roast/commit/95bf03a714

Reply via email to