Update TypeChecker.cpp

This commit is contained in:
Alexander Arlt 2019-11-01 02:21:48 -05:00
parent 569422d2c2
commit f3f652e290

View File

@ -2156,9 +2156,6 @@ void TypeChecker::endVisit(NewExpression const& _newExpression)
if (contract->abstract() || !contract->annotation().unimplementedFunctions.empty())
m_errorReporter.typeError(_newExpression.location(), "Cannot instantiate an abstract contract.");
if (contract->abstract())
m_errorReporter.typeError(_newExpression.location(), "Cannot instantiate an abstract contract.");
solAssert(!!m_scope, "");
m_scope->annotation().contractDependencies.insert(contract);
solAssert(