fix: scope issue with expect and function calls

Add acceptance test 72
This commit is contained in:
Kasey White
2023-03-03 00:48:01 -05:00
committed by Lucas
parent 60bc2ab61d
commit f230af436c
4 changed files with 77 additions and 0 deletions

View File

@@ -1812,6 +1812,10 @@ impl<'a> CodeGenerator<'a> {
&& !tipo.is_data()
{
let mut assert_vec = vec![];
let mut scope = scope;
scope.push(self.id_gen.next());
self.recursive_assert_pattern(
pattern,
&mut assert_vec,