all tests pass

This commit is contained in:
Folkert 2021-08-11 21:59:23 +02:00
parent 6c0860b6bf
commit 1d32be0818
3 changed files with 56 additions and 21 deletions

View file

@ -120,7 +120,7 @@ pub fn unify_pool(subs: &mut Subs, pool: &mut Pool, var1: Variable, var2: Variab
}
fn unify_context(subs: &mut Subs, pool: &mut Pool, ctx: Context) -> Outcome {
if true {
if false {
// if true, print the types that are unified.
//
// NOTE: names are generated here (when creating an error type) and that modifies names
@ -1589,8 +1589,6 @@ fn unify_flat_type(
let union1 = gather_tags(subs, tags1, *ext1);
let union2 = gather_tags_new(subs, tags2.clone(), *ext2);
dbg!(&union1, &union2, tags2);
unify_tag_union(subs, pool, ctx, union1, union2, (None, None))
}