Commit 53072916 authored by Robert Bradshaw's avatar Robert Bradshaw

Use classmethod utility code even when it's not called.

This helps with #1510. There is still a bug in that the builtin
classmethod is not use here.
parent 6dd263aa
......@@ -1816,6 +1816,7 @@ class ClassScope(Scope):
py_object_type,
[PyrexTypes.CFuncTypeArg("", py_object_type, None)], 0, 0))
entry.utility_code_definition = Code.UtilityCode.load_cached("ClassMethod", "CythonFunction.c")
self.use_entry_utility_code(entry)
entry.is_cfunction = 1
return entry
......
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