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


$ perl6 -e '(1,2)[0] := 3'
[hangs]
^C

The attempted operation is not valid, because list structure is immutable.
This ought to be detected as an unimplemeted method or in a better way.
But a method trying to handle multidimensional indexing picks up the call
and ends up delegating to itself in an infinite recursion.  I think that
method should have a narrower signature so that it only tackles cases
that are strictly multidimensional.

-zefram

Reply via email to