fix: tail list being expected on when it should be empty

This commit is contained in:
microproofs 2023-06-13 11:48:54 -04:00 committed by Kasey
parent 1e0f7ea0ab
commit c3bb7b0f75
1 changed files with 3 additions and 4 deletions

View File

@ -2129,11 +2129,10 @@ impl<'a> CodeGenerator<'a> {
format!("__tail_{}", self.id_gen.next())
};
if tail.is_some() {
self.expect_type(tipo, &mut tail_stack, &name, &mut IndexMap::new());
expect_list_stacks.push(tail_stack);
if tail.is_some() {
names.push(name);
}