mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
added one more test and realized that there was one last change before the parser is perfect
This commit is contained in:
@@ -1056,7 +1056,7 @@ ASTPointer<Expression> Parser::parsePrimaryExpression()
|
||||
if (m_scanner->currentToken() == oppositeToken)
|
||||
break;
|
||||
else if (m_scanner->currentToken() == Token::Comma)
|
||||
if (isArray && (m_scanner->peekNextToken() == (Token::Comma || oppositeToken)))
|
||||
if (isArray && (m_scanner->peekNextToken() == Token::Comma || m_scanner->peekNextToken() == oppositeToken))
|
||||
fatalParserError(std::string("Expected value in array cell after ',' ."));
|
||||
m_scanner->next();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user