Commit 3a338a9c authored by Robert Bradshaw's avatar Robert Bradshaw

Don't warn on un-assigned error types.

parent 870aedff
......@@ -584,7 +584,8 @@ def check_definitions(flow, compiler_directives):
node.cf_maybe_null = True
if not entry.from_closure and len(node.cf_state) == 1:
node.cf_is_null = True
if node.allow_null or entry.from_closure or entry.is_pyclass_attr:
if (node.allow_null or entry.from_closure
or entry.is_pyclass_attr or entry.type.is_error):
pass # Can be uninitialized here
elif node.cf_is_null:
if entry.error_on_uninitialized or (
......
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