]> granicus.if.org Git - vim/commitdiff
patch 8.2.1453: Vim9: failure to compile lambda not tested v8.2.1453
authorBram Moolenaar <Bram@vim.org>
Fri, 14 Aug 2020 19:49:08 +0000 (21:49 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 14 Aug 2020 19:49:08 +0000 (21:49 +0200)
Problem:    Vim9: failure to compile lambda not tested.
Solution:   Add a test case.

src/testdir/test_vim9_expr.vim
src/version.c

index c6734539e011f2e6121f2bfa7737de39aaac0481..48c1cf2191a69f85e5e20c036ae21ebbba933198 100644 (file)
@@ -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()
index 842af416b01dbb702e6a19659866a4edd624f2ed..cebea645820cbe46c8788c0863fd979afa86153a 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1453,
 /**/
     1452,
 /**/