Fixing tests on breaking branch.

This commit is contained in:
Djordje Mijovic
2020-05-19 17:42:19 +02:00
committed by chriseth
parent 993a7941b1
commit bd64b971b9
9 changed files with 18 additions and 14 deletions
+5 -5
View File
@@ -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;