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
Cannot .new / .clone TypedHash without losing typing #3138
Comments
From @lizmat[12:36:12] <lizmat> r: my %h{Any}; my %i=%h.new; say %h.WHAT; say %i.WHAT # did we agree that this was a rakudobug? |
From @MouqNot sure if this worked before, but these examples work fine if one uses binding instead of assignment. On Fri May 17 03:45:49 2013, elizabeth wrote:
03:52 <Mouq> m: my %h{Any}; my %i:=%h.new; say %h.WHAT; say %i.WHAT
03:52 <Mouq> m: my %h{Any}; my %i:=%h.clone; say %h.WHAT; say %i.WHAT Since %i is a normal Hash by default, can this be closed with tests? |
The RT System itself - Status changed from 'new' to 'open' |
From @jnthnOn Wed Mar 11 20:54:04 2015, Mouq wrote:
Yes, the binding/assignment distinction here is important, and Rakudo's behavior is by design. Added tests to S09-typed-arrays/hashes.t to codify this. |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#118031 (status was 'resolved')
Searchable as RT118031$
The text was updated successfully, but these errors were encountered: