mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-19 11:05:45 +00:00
Fix scan_expression not to mark sequence as Load
This commit is contained in:
parent
ca09cc215d
commit
a02ba6104f
1 changed files with 1 additions and 1 deletions
|
@ -585,7 +585,7 @@ impl SymbolTableBuilder {
|
||||||
}
|
}
|
||||||
Bytes { .. } => {}
|
Bytes { .. } => {}
|
||||||
Tuple { elements } | Set { elements } | List { elements } | Slice { elements } => {
|
Tuple { elements } | Set { elements } | List { elements } | Slice { elements } => {
|
||||||
self.scan_expressions(elements, &ExpressionContext::Load)?;
|
self.scan_expressions(elements, context)?;
|
||||||
}
|
}
|
||||||
Comprehension { kind, generators } => {
|
Comprehension { kind, generators } => {
|
||||||
match **kind {
|
match **kind {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue