Commit 9bb83176 authored by Robert Bradshaw's avatar Robert Bradshaw

Refinement to ResultRefNode fix.

Only analyse typeless inner expressions.
parent 5c25b01d
......@@ -149,6 +149,7 @@ class ResultRefNode(AtomicExprNode):
def analyse_types(self, env):
if self.expression is not None:
if not self.expression.type:
self.expression = self.expression.analyse_types(env)
self.type = self.expression.type
return self
......
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