Commit 0f9c10da authored by gsamain's avatar gsamain Committed by Xavier Thompson

Fix cypclass init not inherited from templated base

parent 14f8ffd2
......@@ -2582,7 +2582,7 @@ class CppClassScope(Scope):
if type.is_cfunction and self.type:
if not self.type.get_fused_types():
entry.func_cname = "%s::%s" % (self.type.empty_declaration_code(), cname)
if name != "this" and (defining or name != "<init>"):
if name != "this" and (defining or name != "<init>" or self.parent_type.is_cyp_class):
self.var_entries.append(entry)
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