diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-11-18 22:19:14 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-11-18 22:30:49 +0800 |
commit | a4114f16bf0867bc93ef2c1cc47f01383c9820ee (patch) | |
tree | d7489df3e4958521e83b77faf032185034408266 /src/nvim/testdir/test_lambda.vim | |
parent | fdeb20ddde627ea99521a2c4c1525a91ffcd763c (diff) | |
download | rneovim-a4114f16bf0867bc93ef2c1cc47f01383c9820ee.tar.gz rneovim-a4114f16bf0867bc93ef2c1cc47f01383c9820ee.tar.bz2 rneovim-a4114f16bf0867bc93ef2c1cc47f01383c9820ee.zip |
vim-patch:8.2.0469: Vim9: no error for missing ] after list
Problem: Vim9: no error for missing ] after list.
Solution: Add error message. Add more tests.
https://github.com/vim/vim/commit/ee619e5bc0992e818f2d9540b093b769b9c27651
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/testdir/test_lambda.vim')
-rw-r--r-- | src/nvim/testdir/test_lambda.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_lambda.vim b/src/nvim/testdir/test_lambda.vim index ce15243993..025eb016a8 100644 --- a/src/nvim/testdir/test_lambda.vim +++ b/src/nvim/testdir/test_lambda.vim @@ -62,7 +62,7 @@ endfunc function Test_lambda_fails() call assert_equal(3, {a, b -> a + b}(1, 2)) call assert_fails('echo {a, a -> a + a}(1, 2)', 'E853:') - call assert_fails('echo {a, b -> a + b)}(1, 2)', 'E15:') + call assert_fails('echo {a, b -> a + b)}(1, 2)', 'E451:') echo assert_fails('echo 10->{a -> a + 2}', 'E107:') endfunc |