Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix BIND-POS type checking in typed arrays.
We accidentally allowed the unchecked candidates to get called due to
the missing proto.
  • Loading branch information
jnthn committed Oct 6, 2015
1 parent e5612aa commit f04a24b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/Array.pm
Expand Up @@ -759,6 +759,7 @@ my class Array { # declared in BOOTSTRAP
arr.STORE(@values);
arr
}
proto method BIND-POS(|) { * }
multi method BIND-POS(Int $pos, TValue \bindval) is raw {
my int $ipos = $pos;
my $todo := nqp::getattr(self, List, '$!todo');
Expand Down

0 comments on commit f04a24b

Please sign in to comment.