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


These should both pass:

     my @a = ["a", ["b", "c"]];

     is-deeply @a[1; 0],     "b", 'multi-dim .[]';
     is-deeply @a[1.0; "0"], "b", 'multi-dim .[] with non-Int indices';

But in current Rakudo, the second one fails because it returns the list 
`("b",)` instead of the the string `"b"`.

This is caused by the line:

 
https://github.com/rakudo/rakudo/blob/ab26b58/src/core/multidim_slice.pm#L62

I've sent a pull request which fixes this, among other things:

     https://github.com/rakudo/rakudo/pull/1139

Reply via email to