'type inference' for special temp nodes
authorStefan Behnel <scoder@users.berlios.de>
Sat, 5 Dec 2009 23:09:54 +0000 (00:09 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 5 Dec 2009 23:09:54 +0000 (00:09 +0100)
Cython/Compiler/UtilNodes.py

index 81a50300c6f8190b502b33a59cb4d58ed36a2337..8e6029dde20f9ffec1c2a049189792e9e50342a4 100644 (file)
@@ -127,6 +127,9 @@ class ResultRefNode(AtomicExprNode):
     def analyse_types(self, env):
         self.type = self.expression.type
 
+    def infer_type(self, env):
+        return self.expression.infer_type(env)
+
     def result(self):
         return self.result_code
 
@@ -192,6 +195,9 @@ class EvalWithTempExprNode(ExprNodes.ExprNode, LetNodeMixin):
         self.pos = subexpression.pos
         self.subexpression = subexpression
 
+    def infer_type(self, env):
+        return self.subexpression.infer_type(env)
+
     def result(self):
         return self.subexpression.result()