mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
Simply choosing of the matching variable
This commit is contained in:
parent
2c62f9b5ba
commit
c827349ae2
1 changed files with 1 additions and 8 deletions
|
@ -882,14 +882,7 @@ fn unify_lambda_set_help(
|
|||
|
||||
let outcome = unify_pool(subs, pool, var1, var2, ctx.mode);
|
||||
|
||||
// TODO: i think we can get rid of this
|
||||
// clearly, this is very suspicious: these variables have just been unified. And yet,
|
||||
// not doing this leads to stack overflows
|
||||
if rec2.is_some() {
|
||||
if outcome.mismatches.is_empty() {
|
||||
matching_vars.push(var2);
|
||||
}
|
||||
} else if outcome.mismatches.is_empty() {
|
||||
if outcome.mismatches.is_empty() {
|
||||
matching_vars.push(var1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue