passing tests!

This commit is contained in:
Folkert 2021-05-20 22:43:55 +02:00
parent 910a7e5113
commit 1d7ca32101
3 changed files with 8 additions and 7 deletions

View file

@ -2063,12 +2063,12 @@ fn update<'a>(
println!("{}", result); println!("{}", result);
} }
// Proc::optimize_refcount_operations( Proc::optimize_refcount_operations(
// arena, arena,
// module_id, module_id,
// &mut ident_ids, &mut ident_ids,
// &mut state.procedures, &mut state.procedures,
// ); );
state.constrained_ident_ids.insert(module_id, ident_ids); state.constrained_ident_ids.insert(module_id, ident_ids);

View file

@ -19,7 +19,7 @@ use roc_types::subs::{Content, FlatType, Subs, Variable};
use std::collections::HashMap; use std::collections::HashMap;
use ven_pretty::{BoxAllocator, DocAllocator, DocBuilder}; use ven_pretty::{BoxAllocator, DocAllocator, DocBuilder};
pub const PRETTY_PRINT_IR_SYMBOLS: bool = true; pub const PRETTY_PRINT_IR_SYMBOLS: bool = false;
macro_rules! return_on_layout_error { macro_rules! return_on_layout_error {
($env:expr, $layout_result:expr) => { ($env:expr, $layout_result:expr) => {

View file

@ -1813,6 +1813,7 @@ mod test_mono {
dec Test.14; dec Test.14;
let Test.8 = CallByName Test.1; let Test.8 = CallByName Test.1;
let Test.6 = CallByName List.7 Test.8; let Test.6 = CallByName List.7 Test.8;
dec Test.8;
let Test.4 = CallByName Num.24 Test.5 Test.6; let Test.4 = CallByName Num.24 Test.5 Test.6;
ret Test.4; ret Test.4;
"# "#