You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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»
[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»
Migrated from rt.perl.org#126120 (status was 'open')
Searchable as RT126120$
The text was updated successfully, but these errors were encountered: