From 983163f8ed0547d8efdaa8700d87291c0a19415c Mon Sep 17 00:00:00 2001 From: Arsene Perard-Gayot Date: Mon, 20 Nov 2017 18:24:33 +0100 Subject: [PATCH] Fix bug when parsing nested lambdas --- src/impala/parser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/impala/parser.cpp b/src/impala/parser.cpp index 9cd4dae1e..0ff29791e 100644 --- a/src/impala/parser.cpp +++ b/src/impala/parser.cpp @@ -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); }