Skip to content

Commit

Permalink
Fix bug when parsing nested lambdas
Browse files Browse the repository at this point in the history
  • Loading branch information
Arsene Perard-Gayot committed Nov 20, 2017
1 parent 87efdc8 commit 983163f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/impala/parser.cpp
Expand Up @@ -1138,6 +1138,7 @@ const FnExpr* Parser::parse_fn_expr(bool nested) {
});
// special case for nested lambdas (e.g. |x||y| x + y)
if (accept(Token::OROR)) {
params.emplace_back(parse_return_param());
auto body = parse_fn_expr(true);
return new FnExpr(tracker, pe_expr, std::move(params), body);
}
Expand Down

0 comments on commit 983163f

Please sign in to comment.