diff --git a/src/core/Signature.pm6 b/src/core/Signature.pm6 index ef77f21c4d2..b9714e32364 100644 --- a/src/core/Signature.pm6 +++ b/src/core/Signature.pm6 @@ -9,7 +9,10 @@ my class Signature { # declared in BOOTSTRAP # has Code $!code; multi method new(Signature:U: - :@params, Mu :$returns, Int:D :$arity = 0, Num:D :$count = $arity.Num + :@params, + Mu :$returns, + Int:D :$arity = @params.elems, + Num:D :$count = $arity.Num ) { nqp::create(self)!SET-SELF(@params, $returns, $arity, $count) }