insert def should run after all sequences have run

This commit is contained in:
Kasey White 2022-11-24 17:51:49 -05:00
parent 6babebde28
commit 1c3511b073
1 changed files with 4 additions and 1 deletions

View File

@ -787,7 +787,10 @@ impl<'a> CodeGenerator<'a> {
.push((String::new(), term.clone()));
}
self.uplc_function_holder.pop().unwrap().1
self.maybe_insert_def(
self.uplc_function_holder.clone().pop().unwrap().1,
scope_level,
)
}
TypedExpr::Var {
constructor, name, ..