Johan Viklund (via RT) wrote:
> In Rakudo this works:
>
> (my @s)[0] //= 0;
>
> But this does not:
>
> (state @s)[0] //= 0;
>
> Error message: "elements() not implemented in class 'Integer'"
>
Now tested in spec/S03-operators/misc.t.
Cheers,
Moritz
# New Ticket Created by Johan Viklund
# Please include the string: [perl #66404]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=66404 >
In Rakudo this works:
(my @s)[0] //= 0;
But this does not:
(state @s)[0] //= 0;
Err