mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 06:55:15 +00:00
parent
ae122a0aea
commit
5f117be306
5 changed files with 90 additions and 62 deletions
|
@ -284,14 +284,14 @@ impl Scope {
|
|||
&mut self,
|
||||
ident: &Ident,
|
||||
region: Region,
|
||||
) -> Result<Symbol, (Region, Loc<Ident>)> {
|
||||
) -> Result<Symbol, (Symbol, Region, Loc<Ident>)> {
|
||||
match self.introduce_help(ident.as_str(), region) {
|
||||
Err((_, original_region)) => {
|
||||
Err((symbol, original_region)) => {
|
||||
let shadow = Loc {
|
||||
value: ident.clone(),
|
||||
region,
|
||||
};
|
||||
Err((original_region, shadow))
|
||||
Err((symbol, original_region, shadow))
|
||||
}
|
||||
Ok(symbol) => Ok(symbol),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue