mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Have more uniform parser errors
This commit is contained in:
@@ -528,7 +528,7 @@ ASTPointer<EnumDefinition> Parser::parseEnumDefinition()
|
||||
break;
|
||||
expectToken(Token::Comma);
|
||||
if (m_scanner->currentToken() != Token::Identifier)
|
||||
fatalParserError(string("Expected Identifier after ','"));
|
||||
fatalParserError(string("Expected identifier after ','"));
|
||||
}
|
||||
if (members.size() == 0)
|
||||
parserError({"enum with no members is not allowed."});
|
||||
|
||||
Reference in New Issue
Block a user