fix: using the wrong var for pattern matching

This commit is contained in:
microproofs
2023-08-16 19:59:29 -04:00
committed by Kasey
parent 2456801b17
commit a45e04fd9b

View File

@@ -1673,7 +1673,7 @@ impl<'a> CodeGenerator<'a> {
Pattern::List { .. } | Pattern::Var { .. } | Pattern::Discard { .. }
));
let Pattern::List { elements, tail, .. } = &clause.pattern else {
let Pattern::List { elements, tail, .. } = clause_pattern else {
let mut next_clause_props = ClauseProperties {
clause_var_name: props.clause_var_name.clone(),
complex_clause: false,