Commit eca6810c authored by gsamain's avatar gsamain Committed by Xavier Thompson

Cpp: Fix AttributeNode.analyse_as_type_attribute overloaded alternatives

parent 0c732fdd
......@@ -7009,6 +7009,8 @@ class AttributeNode(ExprNode):
ubcm_entry.func_cname = entry.func_cname
ubcm_entry.is_unbound_cmethod = 1
ubcm_entry.scope = entry.scope
if type.is_cpp_class:
ubcm_entry.overloaded_alternatives = [Symtab.Entry(entry.name, entry.func_cname, entry.type) for entry in entry.overloaded_alternatives]
return self.as_name_node(env, ubcm_entry, target=False)
elif type.is_enum or type.is_cpp_enum:
if self.attribute in type.values:
......
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