Commit 9cc37c4c authored by Stefan Behnel's avatar Stefan Behnel

provide type inference dependencies for ResultRefNode

parent 1790573a
......@@ -138,6 +138,12 @@ class ResultRefNode(AtomicExprNode):
# nothing to do here
return self
def type_dependencies(self, env):
if self.expression:
return (self.expression,)
else:
return ()
def analyse_types(self, env):
if self.expression is not None:
self.type = self.expression.type
......
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