Skip to content
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

$h = {a => 1, b=> 2}; @a = %$h; # not flattening #3424

Closed
p6rt opened this issue Jul 3, 2014 · 3 comments
Closed

$h = {a => 1, b=> 2}; @a = %$h; # not flattening #3424

p6rt opened this issue Jul 3, 2014 · 3 comments

Comments

@p6rt
Copy link

p6rt commented Jul 3, 2014

Migrated from rt.perl.org#122223 (status was 'resolved')

Searchable as RT122223$

@p6rt
Copy link
Author

p6rt commented Jul 3, 2014

From @dwarring

use Test;
my $h = { a => 1, b => 2, c => 3 };
my @​h-h = %$h;
is_deeply +@​h-h, 3, '% sigil flattening of hashref';

not ok 1 - % sigil flattening of hashref
# got​: 1
# expected​: 3

Fudged added to S02-types/flattening.t

@p6rt
Copy link
Author

p6rt commented Jul 4, 2014

From @dwarring

Fixed by rakudo/rakudo@44d5357987

Thanks lizmat++

On Thu Jul 03 13​:24​:21 2014, david.warring wrote​:

use Test;
my $h = { a => 1, b => 2, c => 3 };
my @​h-h = %$h;
is_deeply +@​h-h, 3, '% sigil flattening of hashref';

not ok 1 - % sigil flattening of hashref
# got​: 1
# expected​: 3

Fudged added to S02-types/flattening.t

@p6rt p6rt closed this as completed Jul 4, 2014
@p6rt
Copy link
Author

p6rt commented Jul 4, 2014

@dwarring - Status changed from 'new' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant