mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 02:39:20 +00:00
Merge branch 'main' into lib.d
This commit is contained in:
commit
df2aaef552
1 changed files with 1 additions and 1 deletions
|
@ -662,7 +662,7 @@ impl PyCodeGenerator {
|
|||
.iter()
|
||||
.position(|n| &**n == name)
|
||||
{
|
||||
if self.captured_vars().contains(&name) {
|
||||
if self.py_version.minor >= Some(11) && self.captured_vars().contains(&name) {
|
||||
None
|
||||
} else {
|
||||
Some(Name::local(idx))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue