tests(solve_expr): mismatch still not properly being reported

This commit is contained in:
rvcas 2021-03-23 22:46:48 -04:00
parent 7148522e15
commit 6009501114
2 changed files with 5 additions and 3 deletions

View file

@ -1088,6 +1088,8 @@ fn unify_flat_type(
let problems = unify_pool(subs, pool, new_tag_union_var, *ret);
dbg!(problems.clone());
if problems.is_empty() {
let desc = subs.get(ctx.second);
subs.union(ctx.first, ctx.second, desc);