On Sat, 04 Mar 2017 01:09:20 -0800, lloyd.fo...@gmail.com wrote:
> my $i = 0;
> say "ooo" ~~ / "o" ** {1..$i} / #-> 「ooo」
> 
> It is impossible to match "one or more up to a maximum of zero" times. This
> should just fail to match. If you do a literal '1' without it does the
> right thing:
> 
> perl6 - e 'say "ooo" ~~ / "o" ** 1..0 /'
> 
> ===SORRY!=== Error while compiling -e
> Empty range
> 
> LL

Thank you for the report. This is now fixed.

Fix:  https://github.com/rakudo/rakudo/commit/681d6be9742e7c0
Test: https://github.com/perl6/roast/commit/99c822abdeefbbaf0

Reply via email to