1
0
forked from aniani/vim

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

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