mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix error codes.
This commit is contained in:
@@ -335,7 +335,7 @@ bool TypeChecker::visit(FunctionDefinition const& _function)
|
||||
if (_function.visibility() == Visibility::Private)
|
||||
m_errorReporter.typeError(3942_error, _function.location(), "\"virtual\" and \"private\" cannot be used together.");
|
||||
if (_function.libraryFunction())
|
||||
m_errorReporter.typeError(1878_error, _function.location(), "Library functions cannot be \"virtual\".");
|
||||
m_errorReporter.typeError(7801_error, _function.location(), "Library functions cannot be \"virtual\".");
|
||||
}
|
||||
|
||||
if (_function.isPayable())
|
||||
|
||||
Reference in New Issue
Block a user