Commit 0d6be442 authored by Robert Bradshaw's avatar Robert Bradshaw

Fix crash in type inference code.

This fixes #1752.
parent 4f857124
...@@ -10576,6 +10576,8 @@ class BinopNode(ExprNode): ...@@ -10576,6 +10576,8 @@ class BinopNode(ExprNode):
if result_type is not None: if result_type is not None:
return result_type return result_type
return py_object_type return py_object_type
elif type1.is_error or type2.is_error:
return PyrexTypes.error_type
else: else:
return self.compute_c_result_type(type1, type2) return self.compute_c_result_type(type1, type2)
......
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