mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 16:44:33 +00:00
Exhaustive and redundant marks don't need to be introduced
They are never generalized
This commit is contained in:
parent
ef350e4aed
commit
8cb6121fc3
2 changed files with 1 additions and 22 deletions
|
@ -801,12 +801,7 @@ pub fn constrain_expr(
|
|||
let branch_constraints = constraints.and_constraint(total_cons);
|
||||
|
||||
constraints.exists(
|
||||
[
|
||||
exhaustive.variable_for_introduction(),
|
||||
branches_cond_var,
|
||||
real_cond_var,
|
||||
*expr_var,
|
||||
],
|
||||
[branches_cond_var, real_cond_var, *expr_var],
|
||||
branch_constraints,
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue