mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
@@ -20,7 +20,7 @@
|
||||
* Solidity parser.
|
||||
*/
|
||||
|
||||
#include <ctype.h>
|
||||
#include <cctype>
|
||||
#include <vector>
|
||||
#include <libevmasm/SourceLocation.h>
|
||||
#include <libsolidity/parsing/Parser.h>
|
||||
@@ -554,7 +554,7 @@ ASTPointer<EnumDefinition> Parser::parseEnumDefinition()
|
||||
if (m_scanner->currentToken() != Token::Identifier)
|
||||
fatalParserError(string("Expected identifier after ','"));
|
||||
}
|
||||
if (members.size() == 0)
|
||||
if (members.empty())
|
||||
parserError({"enum with no members is not allowed."});
|
||||
|
||||
nodeFactory.markEndPosition();
|
||||
|
||||
Reference in New Issue
Block a user