diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-09-27 21:11:44 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-10-05 18:42:34 +0800 |
commit | 09276cb9d3589493176bc45b2075517c2087d75b (patch) | |
tree | 2eff98e42245b9d33cd63a4f95567c13f862376b /libsolidity/ast | |
parent | 880be2581108f570d0824352ff7221c8cae3a998 (diff) | |
download | dexon-solidity-09276cb9d3589493176bc45b2075517c2087d75b.tar dexon-solidity-09276cb9d3589493176bc45b2075517c2087d75b.tar.gz dexon-solidity-09276cb9d3589493176bc45b2075517c2087d75b.tar.bz2 dexon-solidity-09276cb9d3589493176bc45b2075517c2087d75b.tar.lz dexon-solidity-09276cb9d3589493176bc45b2075517c2087d75b.tar.xz dexon-solidity-09276cb9d3589493176bc45b2075517c2087d75b.tar.zst dexon-solidity-09276cb9d3589493176bc45b2075517c2087d75b.zip |
Do not add members of address to contracts in experimental 0.5.0
Diffstat (limited to 'libsolidity/ast')
-rw-r--r-- | libsolidity/ast/Types.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp index a3cbe50a..ff5195ff 100644 --- a/libsolidity/ast/Types.cpp +++ b/libsolidity/ast/Types.cpp @@ -1616,9 +1616,10 @@ string ContractType::canonicalName() const return m_contract.annotation().canonicalName; } -MemberList::MemberMap ContractType::nativeMembers(ContractDefinition const*) const +MemberList::MemberMap ContractType::nativeMembers(ContractDefinition const* _contract) const { MemberList::MemberMap members; + solAssert(_contract, ""); if (m_super) { // add the most derived of all functions which are visible in derived contracts @@ -1660,7 +1661,9 @@ MemberList::MemberMap ContractType::nativeMembers(ContractDefinition const*) con &it.second->declaration() )); } - addNonConflictingAddressMembers(members); + // In 0.5.0 address members are not populated into the contract. + if (!_contract->sourceUnit().annotation().experimentalFeatures.count(ExperimentalFeature::V050)) + addNonConflictingAddressMembers(members); return members; } |