Commit 91bce96e authored by Stefan Behnel's avatar Stefan Behnel

code cleanup

parent c951d4e2
......@@ -326,10 +326,7 @@ class ExprNode(Node):
# we ensure that all disposal has been done by the
# time we get the result.
self.analyse_types(env)
bool = self.coerce_to_boolean(env)
if not bool.is_simple():
bool = bool.coerce_to_temp(env)
return bool
return self.coerce_to_boolean(env).coerce_to_simple(env)
# --------------- Type Inference -----------------
......
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