Commit db9591ab authored by Robert Bradshaw's avatar Robert Bradshaw

Fixes a bug with unanalysed ResultRefNodes.

This fixes #1523.
parent f5b89afa
......@@ -149,6 +149,7 @@ class ResultRefNode(AtomicExprNode):
def analyse_types(self, env):
if self.expression is not None:
self.expression = self.expression.analyse_types(env)
self.type = self.expression.type
return self
......
......@@ -393,3 +393,13 @@ def unpack_literal_none_to_exttype():
cdef ExtType a,b,c,d
a, b = c, d = None, None
return a,b,c,d
# Github issue #1523
def test_unpack_resultref():
"""
>>> test_unpack_resultref()
((1, set([])), 1, set([]))
"""
a = b, c = 1, set()
return a, b, c
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