mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
commit
06bd9e23d9
@ -334,8 +334,8 @@ bool TypeChecker::visit(FunctionDefinition const& _function)
|
||||
m_errorReporter.warning(5815_error, _function.location(), "Interface functions are implicitly \"virtual\"");
|
||||
if (_function.visibility() == Visibility::Private)
|
||||
m_errorReporter.typeError(3942_error, _function.location(), "\"virtual\" and \"private\" cannot be used together.");
|
||||
if (isLibraryFunction)
|
||||
m_errorReporter.typeError(1878_error, _function.location(), "Library functions cannot be \"virtual\".");
|
||||
if (_function.libraryFunction())
|
||||
m_errorReporter.typeError(7801_error, _function.location(), "Library functions cannot be \"virtual\".");
|
||||
}
|
||||
|
||||
if (_function.isPayable())
|
||||
|
@ -592,7 +592,7 @@ bool AsmAnalyzer::warnOnInstructions(evmasm::Instruction _instr, SourceLocation
|
||||
else if (_instr == evmasm::Instruction::PC)
|
||||
{
|
||||
m_errorReporter.error(
|
||||
4316_error,
|
||||
2450_error,
|
||||
Error::Type::SyntaxError,
|
||||
_location,
|
||||
"PC instruction is a low-level EVM feature. "
|
||||
|
Loading…
Reference in New Issue
Block a user