fixed compilation tests and upgraded ext. tests branch

This commit is contained in:
Harikrishnan Mulackal
2020-05-05 21:11:15 +05:30
parent aed6c22318
commit 92cf61d4f9
19 changed files with 65 additions and 103 deletions
+4 -4
View File
@@ -45,9 +45,10 @@ void NowKeyword::endVisit(Identifier const& _identifier)
{
IdentifierAnnotation& annotation = _identifier.annotation();
if (MagicVariableDeclaration const* magicVar
= dynamic_cast<MagicVariableDeclaration const*>(annotation.referencedDeclaration))
{
if (
MagicVariableDeclaration const* magicVar =
dynamic_cast<MagicVariableDeclaration const*>(annotation.referencedDeclaration)
)
if (magicVar->type()->category() == Type::Category::Integer)
{
solAssert(_identifier.name() == "now", "");
@@ -57,5 +58,4 @@ void NowKeyword::endVisit(Identifier const& _identifier)
SourceTransform::nowUpdate(_identifier.location())
);
}
}
}