fixed case statements

This commit is contained in:
RJ Catalano
2015-12-15 11:37:00 -06:00
parent 767103be57
commit 5a462afd03
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -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