New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failing tests in S06-traits/is-rw.t: %hash.pairs seems to make a copy rather than a reference #3931
Comments
@usev6 - Status changed from 'new' to 'open' |
From @usev6This ticket is about tests in S06-traits/is-rw.t and S32-hash/pairs.t, which fail because iterating over %hash.pairs seems to work on a copy and not on a reference to the hash element: $ perl6 -e 'my %hash = (a => 42); for %hash.pairs -> $p { $p.value += 100 }; say %hash<a>' The test expects 142 instead. |
From @usev6On Sat Jun 20 13:15:37 2015, bartolin@gmx.de wrote:
Actually it has nothing to do with the for loop: $ perl6 -e 'my %hash = (a => 42); %hash.pairs[0].value = 23; say %hash<a>' |
From @ninerThis was fixed by Rakudo commit 2232157: Merge Enum into Pair. perl6 -e 'my %hash = (a => 42); %hash.pairs[0].value = 23; say %hash<a>' |
@niner - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#124640 (status was 'resolved')
Searchable as RT124640$
The text was updated successfully, but these errors were encountered: