mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
feat(unify): we were actually hitting the second case but desc now comes from first
This commit is contained in:
parent
eff822f48f
commit
b063b45481
2 changed files with 2 additions and 2 deletions
|
@ -1124,7 +1124,7 @@ fn unify_flat_type(
|
|||
let problems = unify_pool(subs, pool, *ret, new_tag_union_var);
|
||||
|
||||
if problems.is_empty() {
|
||||
let desc = subs.get(ctx.second);
|
||||
let desc = subs.get(ctx.first);
|
||||
subs.union(ctx.first, ctx.second, desc);
|
||||
|
||||
vec![]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue