Skip to content

Commit 8de2f44

Browse files
committed
patch 8.2.1453: Vim9: failure to compile lambda not tested
Problem: Vim9: failure to compile lambda not tested. Solution: Add a test case.
1 parent 8d56622 commit 8de2f44

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/testdir/test_vim9_expr.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1583,6 +1583,7 @@ def Test_expr7_lambda()
15831583
assert_equal(true, LambdaUsingArg(1)())
15841584

15851585
call CheckDefFailure(["filter([1, 2], {k,v -> 1})"], 'E1069:')
1586+
call CheckDefFailure(["let L = {a -> a + b}"], 'E1001:')
15861587
enddef
15871588

15881589
def Test_expr7_lambda_vim9script()

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,8 @@ static char *(features[]) =
754754

755755
static int included_patches[] =
756756
{ /* Add new patch number below this line */
757+
/**/
758+
1453,
757759
/**/
758760
1452,
759761
/**/

0 commit comments

Comments
 (0)