diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-29 13:43:27 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-29 13:43:27 +0100 |
commit | 7c215c58936cbebd4132ad6112d04db54b7c153e (patch) | |
tree | 828a4e93e763e10d9b565229f6788007d1552ea2 /src/testdir/test_vimscript.vim | |
parent | 57c732ed782607ce6a8c4f9eeb65b95a00e37701 (diff) | |
download | vim-git-7c215c58936cbebd4132ad6112d04db54b7c153e.tar.gz |
patch 8.2.0331: internal error when using test_void() and test_unknown()v8.2.0331
Problem: Internal error when using test_void() and test_unknown().
(Dominique Pelle)
Solution: Give a normal error.
Diffstat (limited to 'src/testdir/test_vimscript.vim')
-rw-r--r-- | src/testdir/test_vimscript.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/testdir/test_vimscript.vim b/src/testdir/test_vimscript.vim index 7a49b5783..cac3be53a 100644 --- a/src/testdir/test_vimscript.vim +++ b/src/testdir/test_vimscript.vim @@ -1165,6 +1165,8 @@ func Test_type() call assert_equal(v:t_none, type(v:none)) call assert_equal(v:t_none, type(v:null)) + call assert_fails("call type(test_void())", 'E685:') + call assert_fails("call type(test_unknown())", 'E685:') call assert_equal(0, 0 + v:false) call assert_equal(1, 0 + v:true) |