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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user