aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
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;