mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
fixed case statements
This commit is contained in:
@@ -1034,7 +1034,8 @@ ASTPointer<Expression> Parser::parsePrimaryExpression()
|
||||
nodeFactory.markEndPosition();
|
||||
expression = nodeFactory.createNode<Identifier>(getLiteralAndAdvance());
|
||||
break;
|
||||
case Token::LParen || Token::LBrack:
|
||||
case Token::LParen:
|
||||
case Token::LBrack:
|
||||
{
|
||||
// Tuple or parenthesized expression.
|
||||
// Special cases: () is empty tuple type, (x) is not a real tuple, (x,) is one-dimensional tuple
|
||||
|
||||
Reference in New Issue
Block a user