# New Ticket Created by  Eigil Skjæveland 
# Please include the string:  [perl #131134]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=131134 >


> my Int @a = 1, 2;
> my int @b = 1, 2;
> say so @a[-1 ^ 0];
True
> say so @b[-1 ^ 0];
False
> say @a[-1 ^ 0];
Index out of range. Is: -1, should be in 0..^Inf
  in block <unit> at <unknown file> line 1

> say @b[-1 ^ 0];
one(2, 1)

It seems the native int array treats negative indices in a junction as
relative to the end of the array.

This is Rakudo version 2017.01-58-gd06d7c16b built on MoarVM version 
2017.01-13-g4aab5064
implementing Perl 6.c.

Reply via email to