aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/parsing
diff options
context:
space:
mode:
authorRJ Catalano <catalanor0220@gmail.com>2015-12-16 01:37:00 +0800
committerRJ Catalano <catalanor0220@gmail.com>2015-12-16 01:37:00 +0800
commit5a462afd03dc425ab77e718e430f19512740c6b1 (patch)
tree0ef93d09412675186bafb7625ab79e3ece3a26e6 /libsolidity/parsing
parent767103be57d004d94a3711de5c3c0a119f3bc722 (diff)
downloaddexon-solidity-5a462afd03dc425ab77e718e430f19512740c6b1.tar
dexon-solidity-5a462afd03dc425ab77e718e430f19512740c6b1.tar.gz
dexon-solidity-5a462afd03dc425ab77e718e430f19512740c6b1.tar.bz2
dexon-solidity-5a462afd03dc425ab77e718e430f19512740c6b1.tar.lz
dexon-solidity-5a462afd03dc425ab77e718e430f19512740c6b1.tar.xz
dexon-solidity-5a462afd03dc425ab77e718e430f19512740c6b1.tar.zst
dexon-solidity-5a462afd03dc425ab77e718e430f19512740c6b1.zip
fixed case statements
Diffstat (limited to 'libsolidity/parsing')
-rw-r--r--libsolidity/parsing/Parser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libsolidity/parsing/Parser.cpp b/libsolidity/parsing/Parser.cpp
index ba92d2aa..149948f7 100644
--- a/libsolidity/parsing/Parser.cpp
+++ b/libsolidity/parsing/Parser.cpp
@@ -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