1
0
forked from aniani/vim

patch 8.2.4407: Vim9: some code not covered by tests

Problem:    Vim9: some code not covered by tests.
Solution:   Add more tests.  Avoid giving two errors.  Remove dead code.
This commit is contained in:
Bram Moolenaar
2022-02-17 13:08:26 +00:00
parent 2438430863
commit e08be09a08
5 changed files with 177 additions and 107 deletions

View File

@@ -910,6 +910,14 @@ def Test_nested_def_list()
v9.CheckScriptFailure(lines, 'E476:', 1)
enddef
def Test_global_function_not_found()
var lines =<< trim END
g:Ref = 123
call g:Ref()
END
v9.CheckDefExecAndScriptFailure(lines, ['E117:', 'E1085:'], 2)
enddef
def Test_global_local_function()
var lines =<< trim END
vim9script