Commit 4ccc60af authored by gsamain's avatar gsamain Committed by Xavier Thompson

Change checks for assigning cypclass to name node

parent 45d8df5a
......@@ -2434,9 +2434,9 @@ class NameNode(AtomicExprNode):
if is_external_ref:
rhs.generate_giveref(code)
elif self.type.is_cyp_class:
code.put_cyxdecref(self.result())
if isinstance(rhs, NameNode):
if self.use_managed_ref:
rhs.make_owned_reference(code)
code.put_cyxdecref(self.result())
if not self.type.is_memoryviewslice:
if not assigned:
if overloaded_assignment:
......
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