On Fri Mar 25 18:10:03 2016, t...@cpan.org wrote: > Example: > > % perl6 -e 'sub MAIN ($x where { $^x > 1 } ) { say "big" }' 4 > big > % perl6 -e 'sub MAIN ($x where { $^x > 1 } ) { say "big" }' 0 > Usage: > -e '...' <x> > % perl6 -e 'unit sub MAIN ($x where { $^x > 1 } ); say "big"' 4 > ===SORRY!=== > Expression needs parens to avoid gobbling block > at -e:1 > ------> unit sub MAIN ($x where { $^x > 1 }⏏ ); say "big" > Missing block (apparently claimed by expression) > at -e:1 > ------> unit sub MAIN ($x where { $^x > 1 } );⏏ say "big" >
Fixed by removing a check that I really couldn't figure out the point of, despite some time trying: https://github.com/rakudo/rakudo/commit/86843a3fdb No spectests cared for it either, so it's gone. Talking of spectests, I also added a couple of cover this bug, in S06-other/main-semicolon.t, so if we do re-instate such a thing some day it at least won't have this problem. :-)