changeset 21807:3871f8fd2555 v8.2.1453

patch 8.2.1453: Vim9: failure to compile lambda not tested Commit: https://github.com/vim/vim/commit/8de2f44ac6af2276587a2e44a0d5fe1dc6789eb3 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 14 21:49:08 2020 +0200 patch 8.2.1453: Vim9: failure to compile lambda not tested Problem: Vim9: failure to compile lambda not tested. Solution: Add a test case.
author Bram Moolenaar <Bram@vim.org>
date Fri, 14 Aug 2020 22:00:04 +0200
parents 993d3a30ff42
children 816b57029701
files src/testdir/test_vim9_expr.vim src/version.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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()
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1453,
+/**/
     1452,
 /**/
     1451,