From 5a462afd03dc425ab77e718e430f19512740c6b1 Mon Sep 17 00:00:00 2001 From: RJ Catalano Date: Tue, 15 Dec 2015 11:37:00 -0600 Subject: fixed case statements --- libsolidity/ast/AST.h | 1 + libsolidity/parsing/Parser.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libsolidity/ast/AST.h b/libsolidity/ast/AST.h index 55274f0d..372f78a2 100644 --- a/libsolidity/ast/AST.h +++ b/libsolidity/ast/AST.h @@ -1153,6 +1153,7 @@ public: private: std::vector> m_components; + bool isInlineArray() const { return m_isArray; } }; /** 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 Parser::parsePrimaryExpression() nodeFactory.markEndPosition(); expression = nodeFactory.createNode(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 -- cgit