0
0
mirror of https://github.com/vim/vim.git synced 2025-10-03 05:14:07 -04:00

patch 8.2.0331: internal error when using test_void() and test_unknown()

Problem:    Internal error when using test_void() and test_unknown().
            (Dominique Pelle)
Solution:   Give a normal error.
This commit is contained in:
Bram Moolenaar
2020-02-29 13:43:27 +01:00
parent 57c732ed78
commit 7c215c5893
4 changed files with 15 additions and 2 deletions

View File

@@ -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)