Commit 4e6939e9 authored by Stefan Behnel's avatar Stefan Behnel

fix nonlocal crashes

parent 80ff11eb
...@@ -239,7 +239,7 @@ class SimpleAssignmentTypeInferer(object): ...@@ -239,7 +239,7 @@ class SimpleAssignmentTypeInferer(object):
ready_to_infer = [] ready_to_infer = []
for name, entry in scope.entries.items(): for name, entry in scope.entries.items():
if entry.type is unspecified_type: if entry.type is unspecified_type:
if entry.in_closure: if entry.in_closure or entry.from_closure:
# cross-closure type inference is not currently supported # cross-closure type inference is not currently supported
entry.type = py_object_type entry.type = py_object_type
continue continue
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment