0
0
mirror of https://github.com/vim/vim.git synced 2025-10-03 05:14:07 -04:00

patch 8.2.1453: Vim9: failure to compile lambda not tested

Problem:    Vim9: failure to compile lambda not tested.
Solution:   Add a test case.
This commit is contained in:
Bram Moolenaar
2020-08-14 21:49:08 +02:00
parent 8d56622944
commit 8de2f44ac6
2 changed files with 3 additions and 0 deletions

View File

@@ -1583,6 +1583,7 @@ def Test_expr7_lambda()
assert_equal(true, LambdaUsingArg(1)()) assert_equal(true, LambdaUsingArg(1)())
call CheckDefFailure(["filter([1, 2], {k,v -> 1})"], 'E1069:') call CheckDefFailure(["filter([1, 2], {k,v -> 1})"], 'E1069:')
call CheckDefFailure(["let L = {a -> a + b}"], 'E1001:')
enddef enddef
def Test_expr7_lambda_vim9script() def Test_expr7_lambda_vim9script()

View File

@@ -754,6 +754,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1453,
/**/ /**/
1452, 1452,
/**/ /**/