Merge pull request #9178 from ethereum/fixBreaking

Fix compiler error.
This commit is contained in:
chriseth 2020-06-10 18:54:30 +02:00 committed by GitHub
commit 06bd9e23d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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())

View File

@ -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. "