# New Ticket Created by Moritz Lenz # Please include the string: [perl #117641] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=117641 >
09:56 < [0xF]> question #2: sub foo(Int $x is copy) { $x = 5; } f(1); # Cannot assign to a non-container 09:56 < tadzik> r: sub foo(Int $x is copy) { $x = 5; }; foo(1); 09:56 <+camelia> rakudo 4109be: OUTPUT«Cannot modify an immutable value in block at /tmp/eHvKDUJqEz:1» This is a bug. 'is copy' should make sure there's always a container. Cheers, Moritz