aboutsummaryrefslogtreecommitdiffstats
path: root/Types.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-02-27 17:08:14 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-03-02 18:51:13 +0800
commit7db2b6fbdb7188596fbb05bea32d686c32e26c7f (patch)
tree23a58056048ae9789642c077e046a25daede85bd /Types.cpp
parent47177542f54a29562d99b27554ed991f318c058a (diff)
downloaddexon-solidity-7db2b6fbdb7188596fbb05bea32d686c32e26c7f.tar.gz
dexon-solidity-7db2b6fbdb7188596fbb05bea32d686c32e26c7f.tar.zst
dexon-solidity-7db2b6fbdb7188596fbb05bea32d686c32e26c7f.zip
VisibleInDerivedContracts() is now virtual()
- Plus an extra test for internal visibility in a base class variable
Diffstat (limited to 'Types.cpp')
-rw-r--r--Types.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Types.cpp b/Types.cpp
index 73367c85..84e02926 100644
--- a/Types.cpp
+++ b/Types.cpp
@@ -628,8 +628,7 @@ MemberList const& ContractType::getMembers() const
{
for (ContractDefinition const* base: m_contract.getLinearizedBaseContracts())
for (ASTPointer<FunctionDefinition> const& function: base->getDefinedFunctions())
- if (!function->isConstructor() && !function->getName().empty()&&
- function->isVisibleInDerivedContracts())
+ if (function->isVisibleInDerivedContracts())
members.push_back(make_pair(function->getName(), make_shared<FunctionType>(*function, true)));
}
else