mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
ast: ContractDefinition::inheritableMembers contains enums as well as structs
This fixes #1131
This commit is contained in:
parent
f967623a5b
commit
83e8fdecc5
@ -204,6 +204,9 @@ vector<Declaration const*> const& ContractDefinition::inheritableMembers() const
|
||||
|
||||
for (StructDefinition const* s: definedStructs())
|
||||
addInheritableMember(s);
|
||||
|
||||
for (EnumDefinition const* e: definedEnums())
|
||||
addInheritableMember(e);
|
||||
}
|
||||
return *m_inheritableMembers;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user