From eb8b02d22f06799825a030b806b70ae00eb00426 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Tue, 3 Feb 2015 12:45:16 -0800 Subject: [PATCH] Fixes. --- libsolidity/Parser.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libsolidity/Parser.cpp b/libsolidity/Parser.cpp index 74d6c982a..0ad7bd7ca 100644 --- a/libsolidity/Parser.cpp +++ b/libsolidity/Parser.cpp @@ -748,10 +748,9 @@ pair>, vector>> Parser::pars expectToken(Token::LBRACE); while (m_scanner->getCurrentToken() != Token::RBRACE) { + ret.second.push_back(expectIdentifierToken()); expectToken(Token::COLON); - ret.first.push_back(parseExpression()); - ret.second.push_back(expectIdentifierToken()); if (m_scanner->getCurrentToken() == Token::COMMA) expectToken(Token::COMMA);