mirror of
https://github.com/vim/vim.git
synced 2025-10-01 04:54:07 -04:00
patch 8.2.3099: Vim9: missing catch/finally not reported at script level
Problem: Vim9: missing catch/finally not reported at script level. Solution: Give an error. (closes #8487)
This commit is contained in:
@@ -603,6 +603,15 @@ def Test_try_catch_throw()
|
||||
CheckScriptSuccess(lines)
|
||||
assert_match('E808: Number or Float required', g:caught)
|
||||
unlet g:caught
|
||||
|
||||
# missing catch and/or finally
|
||||
lines =<< trim END
|
||||
vim9script
|
||||
try
|
||||
echo 'something'
|
||||
endtry
|
||||
END
|
||||
CheckScriptFailure(lines, 'E1032:')
|
||||
enddef
|
||||
|
||||
def Test_try_in_catch()
|
||||
|
Reference in New Issue
Block a user