aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2016-10-18 19:01:22 +0800
committerYoichi Hirai <i@yoichihirai.com>2016-10-21 19:01:45 +0800
commit83e8fdecc545744f894d9f3b71647aafba1579b3 (patch)
tree345271e8b88d2add5ec9b5d2965bd865ba60caa6 /libsolidity/ast
parentf967623a5b7a6ca5f07edd99537d07dd664a99fe (diff)
downloaddexon-solidity-83e8fdecc545744f894d9f3b71647aafba1579b3.tar.gz
dexon-solidity-83e8fdecc545744f894d9f3b71647aafba1579b3.tar.zst
dexon-solidity-83e8fdecc545744f894d9f3b71647aafba1579b3.zip
ast: ContractDefinition::inheritableMembers contains enums as well as structs
This fixes #1131
Diffstat (limited to 'libsolidity/ast')
-rw-r--r--libsolidity/ast/AST.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libsolidity/ast/AST.cpp b/libsolidity/ast/AST.cpp
index cca19a4e..21c65c7b 100644
--- a/libsolidity/ast/AST.cpp
+++ b/libsolidity/ast/AST.cpp
@@ -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;
}