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

code cleanup

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