From c8ffb3cef547cad432add18cfabe0aae1493775d Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 6 Dec 2009 14:49:36 +0100 Subject: [PATCH] fix node type of EvalWithTempExprNode (when created after type analysis) --- Cython/Compiler/UtilNodes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Cython/Compiler/UtilNodes.py b/Cython/Compiler/UtilNodes.py index 8e6029dd..071a75f8 100644 --- a/Cython/Compiler/UtilNodes.py +++ b/Cython/Compiler/UtilNodes.py @@ -194,6 +194,8 @@ class EvalWithTempExprNode(ExprNodes.ExprNode, LetNodeMixin): self.set_temp_expr(lazy_temp) self.pos = subexpression.pos self.subexpression = subexpression + # if called after type analysis, we already know the type here + self.type = self.subexpression.type def infer_type(self, env): return self.subexpression.infer_type(env) -- 2.26.2