Mark the empty version pragma as invalid

This commit is contained in:
Alex Beregszaszi
2021-01-04 19:28:36 +00:00
parent fdbb4d9a8f
commit 8edfa26f0a
4 changed files with 12 additions and 3 deletions
+1 -1
View File
@@ -204,7 +204,7 @@ ASTPointer<PragmaDirective> Parser::parsePragmaDirective()
nodeFactory.markEndPosition();
expectToken(Token::Semicolon);
if (literals.size() >= 2 && literals[0] == "solidity")
if (literals.size() >= 1 && literals[0] == "solidity")
{
parsePragmaVersion(
nodeFactory.location(),