mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Return a type error when an enum has more than 256 members
This commit is contained in:
@@ -672,7 +672,7 @@ ASTPointer<EnumDefinition> Parser::parseEnumDefinition()
|
||||
fatalParserError(1612_error, "Expected identifier after ','");
|
||||
}
|
||||
if (members.empty())
|
||||
parserError(3147_error, "enum with no members is not allowed.");
|
||||
parserError(3147_error, "Enum with no members is not allowed.");
|
||||
|
||||
nodeFactory.markEndPosition();
|
||||
expectToken(Token::RBrace);
|
||||
|
||||
Reference in New Issue
Block a user