mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fixing tests on breaking branch.
This commit is contained in:
committed by
chriseth
parent
993a7941b1
commit
bd64b971b9
@@ -3027,11 +3027,11 @@ bool TypeChecker::visit(Identifier const& _identifier)
|
||||
if (magicVar->type()->category() == Type::Category::Integer)
|
||||
{
|
||||
solAssert(_identifier.name() == "now", "");
|
||||
m_errorReporter
|
||||
.typeError(
|
||||
_identifier.location(),
|
||||
"\"now\" has been deprecated. Use \"block.timestamp\" instead."
|
||||
);
|
||||
m_errorReporter.typeError(
|
||||
7359_error,
|
||||
_identifier.location(),
|
||||
"\"now\" has been deprecated. Use \"block.timestamp\" instead."
|
||||
);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user