diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-11-06 07:01:45 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-11-06 10:01:50 +0800 |
| commit | d4353c3645f294b67f5b30dae9f39de8f99c7413 (patch) | |
| tree | 2fd4f4964889533fc9b72c98ad64d95a6cb70763 /src/nvim/testdir/test_let.vim | |
| parent | 4740672b37612004d559e9577ca87223ed49ec64 (diff) | |
| download | rneovim-d4353c3645f294b67f5b30dae9f39de8f99c7413.tar.gz rneovim-d4353c3645f294b67f5b30dae9f39de8f99c7413.tar.bz2 rneovim-d4353c3645f294b67f5b30dae9f39de8f99c7413.zip | |
vim-patch:9.0.0836: wrong error when using extend() with funcref
Problem: Wrong error when using extend() with funcref.
Solution: Better check the variable type. (closes vim/vim#11468, closes vim/vim#11455)
https://github.com/vim/vim/commit/91c75d18d9cdc32df57e648640de7476fbcb4d76
Diffstat (limited to 'src/nvim/testdir/test_let.vim')
| -rw-r--r-- | src/nvim/testdir/test_let.vim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_let.vim b/src/nvim/testdir/test_let.vim index 48c5699093..cb883fc238 100644 --- a/src/nvim/testdir/test_let.vim +++ b/src/nvim/testdir/test_let.vim @@ -293,6 +293,7 @@ func Test_let_errors() call assert_fails('let l += 2', 'E734:') call assert_fails('let g:["a;b"] = 10', 'E461:') call assert_fails('let g:.min = function("max")', 'E704:') + call assert_fails('let g:cos = "" | let g:.cos = {-> 42}', 'E704:') if has('channel') let ch = test_null_channel() call assert_fails('let ch += 1', 'E734:') |