Commit 02d2dfa2 authored by Stefan Behnel's avatar Stefan Behnel

improve comment

parent 706eb1c3
......@@ -9679,9 +9679,9 @@ class BoolBinopNode(ExprNode):
return node
def analyse_types(self, env):
# Note: we do not do any coercion here as we most likely not know the final type anyway.
# We even accept to set self.type to ErrorType.
# Both coercion to the final type and to a "simple" value is left to coerce_to().
# Note: we do not do any coercion here as we most likely do not know the final type anyway.
# We even accept to set self.type to ErrorType if both operands do not have a spanning type.
# The coercion to the final type and to a "simple" value is left to coerce_to().
self.operand1 = self.operand1.analyse_types(env)
self.operand2 = self.operand2.analyse_types(env)
self.type = PyrexTypes.independent_spanning_type(
......
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