mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
don't have shadowing overwrite our data
This commit is contained in:
parent
1372825ebb
commit
d09036bb4f
1 changed files with 2 additions and 6 deletions
|
@ -349,10 +349,6 @@ impl Scope {
|
|||
region,
|
||||
};
|
||||
|
||||
// overwrite the data for this ident with the shadowed values
|
||||
self.idents.symbols[index] = shadow_symbol;
|
||||
self.idents.regions[index] = region;
|
||||
|
||||
Err((original_region, shadow, shadow_symbol))
|
||||
}
|
||||
}
|
||||
|
@ -374,9 +370,9 @@ impl Scope {
|
|||
// If this IdentId was already added previously
|
||||
// when the value was exposed in the module header,
|
||||
// use that existing IdentId. Otherwise, create a fresh one.
|
||||
let ident_id = match exposed_ident_ids.get_id(&ident) {
|
||||
let ident_id = match exposed_ident_ids.get_id(ident) {
|
||||
Some(ident_id) => ident_id,
|
||||
None => all_ident_ids.add_ident(&ident),
|
||||
None => all_ident_ids.add_ident(ident),
|
||||
};
|
||||
|
||||
let symbol = Symbol::new(self.home, ident_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue