Commit 4b9ab699 authored by gsamain's avatar gsamain Committed by Xavier Thompson

Cpp: Fix AttributeNode.analyse_as_type_attribute overloaded alternatives

parent c62dbb2b
......@@ -6954,6 +6954,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:
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