mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Remove unncessary variable introduction
This commit is contained in:
parent
907cbdc3a7
commit
2cc47f184f
1 changed files with 4 additions and 3 deletions
|
@ -1183,9 +1183,10 @@ fn constrain_when_branch_help(
|
|||
delayed_is_open_constraints: Vec::new(),
|
||||
};
|
||||
|
||||
state
|
||||
.vars
|
||||
.push(when_branch.redundant.variable_for_introduction());
|
||||
// TODO: can i remove this?
|
||||
// state
|
||||
// .vars
|
||||
// .push(when_branch.redundant.variable_for_introduction());
|
||||
|
||||
// TODO investigate for error messages, is it better to unify all branches with a variable,
|
||||
// then unify that variable with the expectation?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue