From 495d827eceb2f8160421d0f7ce86d1183b54b3de Mon Sep 17 00:00:00 2001 From: Liana Husikyan Date: Thu, 7 May 2015 16:52:06 +0200 Subject: implemented cleanup of duplication in resolver --- AST.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'AST.cpp') 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 possibles; -- cgit