mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Output which functions are not implemented
This commit is contained in:
parent
d633d375e7
commit
ce0cef7cbc
@ -424,10 +424,14 @@ void ContractLevelChecker::checkAbstractFunctions(ContractDefinition const& _con
|
|||||||
!_contract.abstract() &&
|
!_contract.abstract() &&
|
||||||
!_contract.annotation().unimplementedFunctions.empty()
|
!_contract.annotation().unimplementedFunctions.empty()
|
||||||
)
|
)
|
||||||
m_errorReporter.typeError(
|
{
|
||||||
_contract.location(),
|
SecondarySourceLocation ssl;
|
||||||
"Contract \"" + _contract.annotation().canonicalName + "\" should be marked as abstract."
|
for (auto function: _contract.annotation().unimplementedFunctions)
|
||||||
);
|
ssl.append("Missing implementation:", function->location());
|
||||||
|
m_errorReporter.typeError(_contract.location(), ssl,
|
||||||
|
"Contract \"" + _contract.annotation().canonicalName
|
||||||
|
+ "\" should be marked as abstract.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user