aboutsummaryrefslogtreecommitdiffstats
path: root/NameAndTypeResolver.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2015-01-17 00:50:10 +0800
committerChristian <c@ethdev.com>2015-01-20 06:35:04 +0800
commit6633fbb6030cda64bd5c16ac5d59bbaad71967b2 (patch)
tree15ae7276771ee534c0665a0dbfd7e0a445336c82 /NameAndTypeResolver.cpp
parent914fcedd0e2217300ee28f13bc4c006860f81a12 (diff)
downloaddexon-solidity-6633fbb6030cda64bd5c16ac5d59bbaad71967b2.tar.gz
dexon-solidity-6633fbb6030cda64bd5c16ac5d59bbaad71967b2.tar.zst
dexon-solidity-6633fbb6030cda64bd5c16ac5d59bbaad71967b2.zip
Check overrides and provide inherited public interface.
Diffstat (limited to 'NameAndTypeResolver.cpp')
-rw-r--r--NameAndTypeResolver.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/NameAndTypeResolver.cpp b/NameAndTypeResolver.cpp
index 2a73f21b..0b6afdd5 100644
--- a/NameAndTypeResolver.cpp
+++ b/NameAndTypeResolver.cpp
@@ -102,7 +102,8 @@ void NameAndTypeResolver::importInheritedScope(ContractDefinition const& _base)
for (auto const& nameAndDeclaration: iterator->second.getDeclarations())
{
Declaration const* declaration = nameAndDeclaration.second;
- if (declaration->getScope() == &_base)
+ // Import if it was declared in the base and is not the constructor
+ if (declaration->getScope() == &_base && declaration->getName() != _base.getName())
m_currentScope->registerDeclaration(*declaration);
}
}