mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 16:44:33 +00:00
Update comment
This commit is contained in:
parent
23c1a5587a
commit
bfacfa729b
1 changed files with 2 additions and 4 deletions
|
@ -58,10 +58,8 @@ pub fn solve(vars_by_symbol: &Env, subs: &mut Subs, constraint: &Constraint) {
|
|||
let mut new_vars_by_symbol = vars_by_symbol.clone();
|
||||
|
||||
for (symbol, loc_type) in let_con.def_types.iter() {
|
||||
// We must not overwrite existing symbols! If we do,
|
||||
// we will overwrite procedure entries, which were
|
||||
// inserted earlier in solving. (If we allowed
|
||||
// shadowing, we'd need to do something fancier here.)
|
||||
// No need to overwrite existing symbols; it would have no effect.
|
||||
// (If we allowed shadowing, we'd need to do something fancier here.)
|
||||
if !new_vars_by_symbol.contains_key(&symbol) {
|
||||
let var = type_to_var(subs, loc_type.value.clone());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue