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:
@@ -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()
|
||||
|
@@ -754,6 +754,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1453,
|
||||
/**/
|
||||
1452,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user