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
moritz: m: my %h is default([]); %h<a>.push: 1; %h<b>.push: 2; say %h
camelia: rakudo-moar 2d0198: OUTPUT«{}»
moritz: m: my %h; %h<a>.push: 1; %h<b>.push: 2; say %h
camelia: rakudo-moar 2d0198: OUTPUT«{a => [1], b => [2]}»
moritz: does this look like a bug to anybody else?
babydrop: yeah
moritz: I was curious whether it created two distinct arrays, but
didn't expect to see %h empty
* moritz rakudos submitbug
I expected the output from the first to be {a => [1, 2], b => [1, 2]},
or if 'is default' clones the value, {a => [1], b => [2]}.
Migrated from rt.perl.org#130293 (status was 'new')
Searchable as RT130293$
The text was updated successfully, but these errors were encountered: