Commit c8ffb3ce authored by Stefan Behnel's avatar Stefan Behnel

fix node type of EvalWithTempExprNode (when created after type analysis)

parent 8151c0ef
...@@ -194,6 +194,8 @@ class EvalWithTempExprNode(ExprNodes.ExprNode, LetNodeMixin): ...@@ -194,6 +194,8 @@ class EvalWithTempExprNode(ExprNodes.ExprNode, LetNodeMixin):
self.set_temp_expr(lazy_temp) self.set_temp_expr(lazy_temp)
self.pos = subexpression.pos self.pos = subexpression.pos
self.subexpression = subexpression self.subexpression = subexpression
# if called after type analysis, we already know the type here
self.type = self.subexpression.type
def infer_type(self, env): def infer_type(self, env):
return self.subexpression.infer_type(env) return self.subexpression.infer_type(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