Merge branch 'main' into lib.d

This commit is contained in:
Shunsuke Shibayama 2024-02-11 14:02:23 +09:00
commit df2aaef552

View file

@ -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))