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 {
|
||||
location,
|
||||
given: pattern_args,
|
||||
expected: 0,
|
||||
expected: args.len(),
|
||||
name: name.clone(),
|
||||
module: module.clone(),
|
||||
is_record,
|
||||
|
|
Loading…
Reference in New Issue