From: Bram Moolenaar Date: Fri, 14 Aug 2020 19:49:08 +0000 (+0200) Subject: patch 8.2.1453: Vim9: failure to compile lambda not tested X-Git-Tag: v8.2.1453 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8de2f44ac6af2276587a2e44a0d5fe1dc6789eb3;p=vim patch 8.2.1453: Vim9: failure to compile lambda not tested Problem: Vim9: failure to compile lambda not tested. Solution: Add a test case. --- diff --git a/src/testdir/test_vim9_expr.vim b/src/testdir/test_vim9_expr.vim index c6734539e..48c1cf219 100644 --- a/src/testdir/test_vim9_expr.vim +++ b/src/testdir/test_vim9_expr.vim @@ -1583,6 +1583,7 @@ def Test_expr7_lambda() assert_equal(true, LambdaUsingArg(1)()) call CheckDefFailure(["filter([1, 2], {k,v -> 1})"], 'E1069:') + call CheckDefFailure(["let L = {a -> a + b}"], 'E1001:') enddef def Test_expr7_lambda_vim9script() diff --git a/src/version.c b/src/version.c index 842af416b..cebea6458 100644 --- a/src/version.c +++ b/src/version.c @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1453, /**/ 1452, /**/