Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Multi-dispatcher shouldn't ignore all beyond **@x.
There may be extra, required, named arguments beyond it that serve as
a tie-breaker.
  • Loading branch information
jnthn committed Sep 23, 2015
1 parent cf3439c commit f2488e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Metamodel/BOOTSTRAP.nqp
Expand Up @@ -1853,7 +1853,7 @@ BEGIN {
# Otherwise, positional or slurpy and contributes to arity.
if $flags +& ($SIG_ELEM_SLURPY_POS +| $SIG_ELEM_SLURPY_LOL +| $SIG_ELEM_IS_CAPTURE +| $SIG_ELEM_SLURPY_ONEARG) {
$max_arity := $SLURPY_ARITY;
last;
next;
}
elsif $flags +& $SIG_ELEM_IS_OPTIONAL {
$max_arity++;
Expand Down

0 comments on commit f2488e7

Please sign in to comment.