# HG changeset patch # User Bram Moolenaar # Date 1597435204 -7200 # Node ID 3871f8fd255553d868b0516bbbacc9cbca26ded8 # Parent 993d3a30ff424acfe9e568c0ce9712f556ac54b9 patch 8.2.1453: Vim9: failure to compile lambda not tested Commit: https://github.com/vim/vim/commit/8de2f44ac6af2276587a2e44a0d5fe1dc6789eb3 Author: Bram Moolenaar 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. diff --git a/src/testdir/test_vim9_expr.vim b/src/testdir/test_vim9_expr.vim --- 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() diff --git a/src/version.c b/src/version.c --- 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,