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

patch 8.2.4314: test fails where lines are skipped

Problem:    Test fails where lines are skipped.
Solution:   Only give an error when not skipping commands.
This commit is contained in:
Bram Moolenaar
2022-02-06 20:28:13 +00:00
parent 5f4ef5f5e5
commit 8cbf249917
3 changed files with 14 additions and 2 deletions

View File

@@ -1228,6 +1228,11 @@ def Test_vim9script_fails()
assert_fails('vim9script', 'E1038:')
v9.CheckDefFailure(['vim9script'], 'E1038:')
# no error when skipping
if has('nothing')
vim9script
endif
enddef
def Test_script_var_shadows_function()