fix(check): the expected arity with hardcoded to 0
This commit is contained in:
parent
3be05b1545
commit
99a334b132
|
@ -555,7 +555,7 @@ impl<'a, 'b> PatternTyper<'a, 'b> {
|
||||||
Err(Error::IncorrectPatternArity {
|
Err(Error::IncorrectPatternArity {
|
||||||
location,
|
location,
|
||||||
given: pattern_args,
|
given: pattern_args,
|
||||||
expected: 0,
|
expected: args.len(),
|
||||||
name: name.clone(),
|
name: name.clone(),
|
||||||
module: module.clone(),
|
module: module.clone(),
|
||||||
is_record,
|
is_record,
|
||||||
|
|
Loading…
Reference in New Issue