diff options
author | Damien George <damien@micropython.org> | 2022-05-03 10:38:15 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-05-03 16:38:43 +1000 |
commit | 590de399f01cd08aa4825b26b91785e07abcf68c (patch) | |
tree | e5c2a629ec2f3d032f5d85803625ffdaf109d21e /py/scope.h | |
parent | a21fd7cc21270c8b286129a6fe79025c57b33102 (diff) |
py/emitcommon: Don't implicitly close class vars that are assigned to.
When in a class body or at the module level don't implicitly close over
variables that have been assigned to.
Fixes issue #8603.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/scope.h')
-rw-r--r-- | py/scope.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/scope.h b/py/scope.h index 5006deade..b781dde42 100644 --- a/py/scope.h +++ b/py/scope.h @@ -32,6 +32,7 @@ typedef enum { ID_INFO_KIND_UNDECIDED, ID_INFO_KIND_GLOBAL_IMPLICIT, + ID_INFO_KIND_GLOBAL_IMPLICIT_ASSIGNED, ID_INFO_KIND_GLOBAL_EXPLICIT, ID_INFO_KIND_LOCAL, // in a function f, written and only referenced by f ID_INFO_KIND_CELL, // in a function f, read/written by children of f |