mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Disallow several indexed attributes for the same event parameter
This commit is contained in:
@@ -785,7 +785,12 @@ ASTPointer<VariableDeclaration> Parser::parseVariableDeclaration(
|
||||
else
|
||||
{
|
||||
if (_options.allowIndexed && token == Token::Indexed)
|
||||
{
|
||||
if (isIndexed)
|
||||
parserError(5399_error, "Indexed already specified.");
|
||||
|
||||
isIndexed = true;
|
||||
}
|
||||
else if (token == Token::Constant || token == Token::Immutable)
|
||||
{
|
||||
if (mutability != VariableDeclaration::Mutability::Mutable)
|
||||
|
||||
Reference in New Issue
Block a user