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


This feels rather inconsistent:

m: my $a = (1, 2, 3); say $a; say $a.WHAT; $a[1] = 42
rakudo-moar 467b79: OUTPUT«(1 2 3)␤(List)␤Cannot modify an immutable
Int␤  in block <unit> at /tmp/46mt71Ed8W:1␤␤»

m: my $a = [1, 2, 3]; say $a = $a[*]; say $a.WHAT; $a[1] = 42; say $a
rakudo-moar 467b79: OUTPUT«(1 2 3)␤(List)␤(1 42 3)␤»

Reply via email to