fix: issue with tuple clause
It was not consuming the next case if there was no condition being checked in the clause. Now it properly always consumes the next clause unless last clause.
This commit is contained in:
@@ -969,7 +969,8 @@ impl<'a> CodeGenerator<'a> {
|
||||
subject_name,
|
||||
indices_to_define,
|
||||
prev_defined_tuple_indices,
|
||||
*clause_properties.is_complex_clause(),
|
||||
*clause_properties.is_complex_clause()
|
||||
|| (!*clause_properties.is_final_clause()),
|
||||
clause_pattern_stack,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user