Commit 96416479 authored by Robert Bradshaw's avatar Robert Bradshaw

Fix unbound method optimization for static types.

parent dd854104
...@@ -5324,6 +5324,9 @@ class AttributeNode(ExprNode): ...@@ -5324,6 +5324,9 @@ class AttributeNode(ExprNode):
# as an ordinary function. # as an ordinary function.
if entry.func_cname: if entry.func_cname:
cname = entry.func_cname cname = entry.func_cname
if entry.type.is_static_method:
ctype = entry.type
else:
# Fix self type. # Fix self type.
ctype = copy.copy(entry.type) ctype = copy.copy(entry.type)
ctype.args = ctype.args[:] ctype.args = ctype.args[:]
......
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