make uniqueness change codegen

This commit is contained in:
Folkert 2020-08-10 21:13:57 +02:00
parent 9e11526c1d
commit 79ea62b9d4
6 changed files with 52 additions and 37 deletions

View file

@ -224,6 +224,8 @@ pub fn gen(
// Populate Procs further and get the low-level Expr from the canonical Expr
let main_body = Stmt::new(&mut mono_env, loc_expr.value, &mut procs);
let main_body =
roc_mono::inc_dec::visit_declaration(mono_env.arena, mono_env.arena.alloc(main_body));
let mut headers = {
let num_headers = match &procs.pending_specializations {
Some(map) => map.len(),