mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-19 11:05:45 +00:00
Fix symbol scope
This commit is contained in:
parent
408d15f608
commit
66d79ce568
1 changed files with 1 additions and 1 deletions
|
@ -483,7 +483,7 @@ impl SymbolTableAnalyzer {
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
let mut cloned_sym = symbol.clone();
|
let mut cloned_sym = symbol.clone();
|
||||||
cloned_sym.scope = SymbolScope::Local;
|
cloned_sym.scope = SymbolScope::Cell;
|
||||||
last.0.insert(cloned_sym.name.to_owned(), cloned_sym);
|
last.0.insert(cloned_sym.name.to_owned(), cloned_sym);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue