mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update TypeChecker.cpp
This commit is contained in:
parent
569422d2c2
commit
f3f652e290
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user