mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -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:
@@ -58,6 +58,9 @@ func Test_empty()
|
||||
|
||||
call assert_equal(0, empty(function('Test_empty')))
|
||||
call assert_equal(0, empty(function('Test_empty', [0])))
|
||||
|
||||
call assert_fails("call empty(test_void())", 'E685:')
|
||||
call assert_fails("call empty(test_unknown())", 'E685:')
|
||||
endfunc
|
||||
|
||||
func Test_len()
|
||||
|
Reference in New Issue
Block a user