mirror of
https://github.com/neovim/neovim.git
synced 2026-03-05 08:37:14 +00:00
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.
ee619e5bc0
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user