diff options
author | chriseth <chris@ethereum.org> | 2017-12-30 20:46:53 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-04-12 19:09:37 +0800 |
commit | f00bb4359375cd03e9ff6373b5efa41a37ce2876 (patch) | |
tree | d56546ceb10e7c8447fcad63b53fa77e77d61bd2 /libsolidity/analysis/NameAndTypeResolver.cpp | |
parent | 17fc0f54b5dbf6b49e0500e3fca7b681316071f6 (diff) | |
download | dexon-solidity-f00bb4359375cd03e9ff6373b5efa41a37ce2876.tar dexon-solidity-f00bb4359375cd03e9ff6373b5efa41a37ce2876.tar.gz dexon-solidity-f00bb4359375cd03e9ff6373b5efa41a37ce2876.tar.bz2 dexon-solidity-f00bb4359375cd03e9ff6373b5efa41a37ce2876.tar.lz dexon-solidity-f00bb4359375cd03e9ff6373b5efa41a37ce2876.tar.xz dexon-solidity-f00bb4359375cd03e9ff6373b5efa41a37ce2876.tar.zst dexon-solidity-f00bb4359375cd03e9ff6373b5efa41a37ce2876.zip |
Allow function overloads involving MagicVariableDeclarations.
Diffstat (limited to 'libsolidity/analysis/NameAndTypeResolver.cpp')
-rw-r--r-- | libsolidity/analysis/NameAndTypeResolver.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libsolidity/analysis/NameAndTypeResolver.cpp b/libsolidity/analysis/NameAndTypeResolver.cpp index 2f675135..5f9e0e99 100644 --- a/libsolidity/analysis/NameAndTypeResolver.cpp +++ b/libsolidity/analysis/NameAndTypeResolver.cpp @@ -202,8 +202,9 @@ vector<Declaration const*> NameAndTypeResolver::cleanedDeclarations( solAssert( dynamic_cast<FunctionDefinition const*>(declaration) || dynamic_cast<EventDefinition const*>(declaration) || - dynamic_cast<VariableDeclaration const*>(declaration), - "Found overloading involving something not a function or a variable." + dynamic_cast<VariableDeclaration const*>(declaration) || + dynamic_cast<MagicVariableDeclaration const*>(declaration), + "Found overloading involving something not a function, event or a (magic) variable." ); FunctionTypePointer functionType { declaration->functionType(false) }; |