fix(check): the expected arity with hardcoded to 0

This commit is contained in:
rvcas
2023-01-11 20:12:51 -05:00
committed by Lucas
parent 3be05b1545
commit 99a334b132

View File

@@ -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,