mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
simplify constraints
This commit is contained in:
parent
7be41d8c09
commit
b21a226281
1 changed files with 2 additions and 6 deletions
|
@ -888,9 +888,7 @@ pub fn constrain_expr(
|
|||
expected.clone(),
|
||||
);
|
||||
|
||||
let cons = constrain_recursive_defs(constraints, env, defs, body_con);
|
||||
|
||||
constraints.exists([], cons)
|
||||
constrain_recursive_defs(constraints, env, defs, body_con)
|
||||
}
|
||||
LetNonRec(def, loc_ret) => {
|
||||
let mut stack = Vec::with_capacity(1);
|
||||
|
@ -913,9 +911,7 @@ pub fn constrain_expr(
|
|||
);
|
||||
|
||||
while let Some(def) = stack.pop() {
|
||||
let cons = constrain_def(constraints, env, def, body_con);
|
||||
|
||||
body_con = constraints.exists([], cons)
|
||||
body_con = constrain_def(constraints, env, def, body_con)
|
||||
}
|
||||
|
||||
body_con
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue