On Sun, 22 Jan 2017 09:43:51 -0800, sml...@gmail.com wrote:
>     ➜  say (|() xx *)[0];
>     Cannot shift from an empty Array
>       in block <unit> at <unknown file> line 1
> 
> Obviously, this golfed-down example is not useful as written. But this
> happened as an edge case of some real code I was writing.
> 
> By contrast, when the `xx` repetition count is finite is works correctly:
> 
>     ➜  say (|() xx 5)[0];
>     Nil
> 
> And when the thing that is being slipped in is non-empty, it also work
> correctly:
> 
>     ➜  say (|1 xx *)[0];
>     1


Thank you for the report. This is now fixed.

Fix: https://github.com/rakudo/rakudo/commit/4e49ec135d
Test: https://github.com/perl6/roast/commit/75e15bbb2a

Reply via email to