mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
fix alias error incorrectly reported
This commit is contained in:
parent
1ef0d82c5c
commit
a08485b0ee
2 changed files with 27 additions and 18 deletions
|
@ -190,7 +190,9 @@ fn unify_alias(
|
|||
problems.extend(unify_pool(subs, pool, *l_var, *r_var));
|
||||
}
|
||||
|
||||
problems.extend(merge(subs, &ctx, other_content.clone()));
|
||||
if problems.is_empty() {
|
||||
problems.extend(merge(subs, &ctx, other_content.clone()));
|
||||
}
|
||||
|
||||
if problems.is_empty() {
|
||||
problems.extend(unify_pool(subs, pool, real_var, *other_real_var));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue