Commit 70fc8bb1 authored by Stefan Behnel's avatar Stefan Behnel

Remove ugly hack from dead code, in case we ever need it.

parent 8e6bbf40
......@@ -10519,9 +10519,7 @@ class SizeofTypeNode(SizeofNode):
for attr in path[1:]:
operand = AttributeNode(pos=self.pos, obj=operand, attribute=attr)
operand = AttributeNode(pos=self.pos, obj=operand, attribute=self.base_type.name)
self.operand = operand
self.__class__ = SizeofVarNode
node = self.analyse_types(env)
node = SizeofVarNode(self.pos, operand=operand).analyse_types(env)
return node
if self.arg_type is None:
base_type = self.base_type.analyse(env)
......
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