diff options
author | Liana Husikyan <liana@ethdev.com> | 2015-05-07 22:52:06 +0800 |
---|---|---|
committer | Liana Husikyan <liana@ethdev.com> | 2015-05-08 23:51:52 +0800 |
commit | 495d827eceb2f8160421d0f7ce86d1183b54b3de (patch) | |
tree | 774b97de98757e679eb960c05ee669fdd5dfc359 /AST.cpp | |
parent | 115c22c0e001fd0f9c440c45b33009bfe99697f8 (diff) | |
download | dexon-solidity-495d827eceb2f8160421d0f7ce86d1183b54b3de.tar.gz dexon-solidity-495d827eceb2f8160421d0f7ce86d1183b54b3de.tar.zst dexon-solidity-495d827eceb2f8160421d0f7ce86d1183b54b3de.zip |
implemented cleanup of duplication in resolver
Diffstat (limited to 'AST.cpp')
-rw-r--r-- | AST.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -954,6 +954,9 @@ Declaration const& Identifier::getReferencedDeclaration() const void Identifier::overloadResolution(TypePointers const& _argumentTypes) { solAssert(!m_referencedDeclaration, "Referenced declaration should be null before overload resolution."); + //to delete + if (m_overloadedDeclarations.empty()) + //---------------------------> solAssert(!m_overloadedDeclarations.empty(), "No candidates for overload resolution found."); vector<Declaration const*> possibles; |