Open p6rt opened 8 years ago
Note that star needs to use EnumMap to test this, but the problem happened well after 2015.09.
(09:58:41 AM) skids: star: class a { has EnumMap $.f = EnumMap.new() }; my $f = a.new(); $f.f.perl.say; $f.f = :a1, :b2; $f.f.perl.say
(09:58:41 AM) camelia: star-m 2015.09: OUTPUT«EnumMap.new()Cannot assign to a readonly variable or a value in block \
psch++ tracked this to the recent attribute inlining optimizations in rakudo fdd37a9 though there were NQP/MoarVM changes involved in that as well.
Note also this, which is not related and also behaves this way on star:
10:05:11 AM) skids: m: my %f := Map.new(); %f = (:a1, :b2); %f.perl.say (10:05:11 AM) camelia: rakudo-moar f93bab: OUTPUT«Map.new((:a1,:b2))»
This all fell out from a question asked by JRasPass++ here:
Still present in today's rakudo de5d9e:
\
Migrated from rt.perl.org#127686 (status was 'new')
Searchable as RT127686$