Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make array.new behave like Array.new WRT flattening of args
22:30 < nine> jnthn: array.new takes *@values while Array.new takes **@values.
              Which one is right?
22:30 < jnthn> **
  • Loading branch information
niner committed Aug 25, 2015
1 parent d7ab329 commit d747af1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/native_array.pm
Expand Up @@ -375,7 +375,7 @@ class array does Iterable is repr('VMArray') {
self!validate-parameterized();
nqp::create(self).STORE(@values)
}
multi method new(*@values) {
multi method new(**@values) {
self!validate-parameterized();
nqp::create(self).STORE(@values)
}
Expand Down

0 comments on commit d747af1

Please sign in to comment.