mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Mark the empty version pragma as invalid
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user