To: vim_dev@googlegroups.com Subject: Patch 8.2.1453 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.1453 Problem: Vim9: failure to compile lambda not tested. Solution: Add a test case. Files: src/testdir/test_vim9_expr.vim *** ../vim-8.2.1452/src/testdir/test_vim9_expr.vim 2020-08-14 21:27:34.097321673 +0200 --- src/testdir/test_vim9_expr.vim 2020-08-14 21:48:28.596943105 +0200 *************** *** 1583,1588 **** --- 1583,1589 ---- 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() *** ../vim-8.2.1452/src/version.c 2020-08-14 21:42:50.823581047 +0200 --- src/version.c 2020-08-14 21:47:28.509656971 +0200 *************** *** 756,757 **** --- 756,759 ---- { /* Add new patch number below this line */ + /**/ + 1453, /**/ -- Spam seems to be something useful to novices. Later you realize that it's a bunch of indigestable junk that only clogs your system. Applies to both the food and the e-mail! /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///