Still reproducible (2017.11,HEAD(e5b660e)) On 2015-09-20 10:34:34, elizabeth wrote: > [19:22:03] <lizmat> m: role R { has int $!a }; class A does R { > method a() { $!a = 42 } }; say A.new.a # sigh > [19:22:03] <+camelia> rakudo-moar 97e47a: OUTPUT«Cannot assign to an > immutable value in method a at /tmp/xjfoxVcXDh:1 in block <unit> > at /tmp/xjfoxVcXDh:1» > [19:22:25] <lizmat> m: role R { has Int $!a }; class A does R { > method a() { $!a = 42 } }; say A.new.a # works fine if it is not a > native > [19:22:25] <+camelia> rakudo-moar 97e47a: OUTPUT«42»
[perl #126120] Cannot change native role attribute from consuming class
Aleks-Daniel Jakimenko-Aleksejev via RT Sat, 02 Dec 2017 20:27:07 -0800