forked from M-Labs/nac3
nac3core: fix err msg of too many args
This commit is contained in:
parent
63b0f29728
commit
42fbe8e383
|
@ -429,7 +429,10 @@ impl Unifier {
|
||||||
if signature.args.len() <= i {
|
if signature.args.len() <= i {
|
||||||
self.restore_snapshot();
|
self.restore_snapshot();
|
||||||
return Err(TypeError::new(
|
return Err(TypeError::new(
|
||||||
TypeErrorKind::TooManyArguments { expected: signature.args.len(), got: i },
|
TypeErrorKind::TooManyArguments {
|
||||||
|
expected: signature.args.len(),
|
||||||
|
got: posargs.len() + kwargs.len(),
|
||||||
|
},
|
||||||
*loc,
|
*loc,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue