On Thu, 17 Nov 2016 14:09:50 -0800, alex.jakime...@gmail.com wrote:
> *Code:*
> say ‘abcefgh’ ~~ / .**{0..NaN} /
> 
> *Result:*
> This type cannot unbox to a native integer: P6opaque, Failure
>   in block <unit> at -e line 1
> 
> *Code:*
> say ‘abcefgh’ ~~ / .**{NaN..5} /
> 
> *Result:*
> This type cannot unbox to a native integer: P6opaque, Failure
>   in block <unit> at -e line 1
> 
> 
> Compare that to what happens if you try to use -Inf:
> 
> *Code:*
> say ‘abcefgh’ ~~ / .**{0..-Inf} /
> 
> *Result:*
> Range maximum in quantifier (**) cannot be -Inf
>   in block <unit> at -e line 1


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