ast: ContractDefinition::inheritableMembers contains enums as well as structs

This fixes #1131
This commit is contained in:
Yoichi Hirai 2016-10-18 13:01:22 +02:00
parent f967623a5b
commit 83e8fdecc5
No known key found for this signature in database
GPG Key ID: E7B75D080FCF7992

View File

@ -204,6 +204,9 @@ vector<Declaration const*> const& ContractDefinition::inheritableMembers() const
for (StructDefinition const* s: definedStructs()) for (StructDefinition const* s: definedStructs())
addInheritableMember(s); addInheritableMember(s);
for (EnumDefinition const* e: definedEnums())
addInheritableMember(e);
} }
return *m_inheritableMembers; return *m_inheritableMembers;
} }