aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
authorLiana Husikyan <liana@ethdev.com>2015-05-07 22:52:06 +0800
committerLiana Husikyan <liana@ethdev.com>2015-05-08 23:51:52 +0800
commit495d827eceb2f8160421d0f7ce86d1183b54b3de (patch)
tree774b97de98757e679eb960c05ee669fdd5dfc359 /AST.cpp
parent115c22c0e001fd0f9c440c45b33009bfe99697f8 (diff)
downloaddexon-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.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/AST.cpp b/AST.cpp
index 2f98ce4f..2ef3b03e 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -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;