Commit 84f3ae6a authored by Stefan Behnel's avatar Stefan Behnel

fix for parallel assignments: subexpressions were incorrectly set up in reversed order

parent fd73bf61
......@@ -286,7 +286,7 @@ class PostParse(ScopeTrackingTransform):
duplicates_and_temps = [ (temp.expression, temp)
for temp in temp_refs ]
sort_common_subsequences(duplicates_and_temps)
for _, temp_ref in duplicates_and_temps[::-1]:
for _, temp_ref in duplicates_and_temps:
assign_node = LetNode(temp_ref, assign_node)
return assign_node
......
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