# New Ticket Created by Moritz Lenz # Please include the string: [perl #62026] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=62026 >
22:06 <@moritz_> rakudo: class A { has @.a; method b { @.a = <1 2 3> }; }; A.new.b; say "alive"; 22:06 < p6eval> rakudo 35079: OUTPUT«Cannot assign to readonly variable.current instr.: 'die' pc 14950 (src/builtins/control.pir:204)» Rakudo is overly protective here; in methods of the class the assignment should be allowed. The same problem exists also for hashes. I've added tests for that to t/spec/S12-attributes/instance.t. Cheers, Moritz