Commit 05be7034 authored by gsamain's avatar gsamain

Fix cypclass init not inherited from templated base

parent fd9a055d
......@@ -2481,7 +2481,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