mirror of
https://github.com/vim/vim.git
synced 2025-10-18 07:54:29 -04:00
patch 8.2.0682: Vim9: parsing function argument type can get stuck
Problem: Vim9: parsing function argument type can get stuck. Solution: Bail out when not making progress.
This commit is contained in:
@@ -113,6 +113,7 @@ def Test_call_wrong_args()
|
||||
call CheckDefFailure(['TakesOneArg()'], 'E119:')
|
||||
call CheckDefFailure(['TakesOneArg(11, 22)'], 'E118:')
|
||||
call CheckDefFailure(['bufnr(xxx)'], 'E1001:')
|
||||
call CheckScriptFailure(['def Func(Ref: func(s: string))'], 'E475:')
|
||||
enddef
|
||||
|
||||
" Default arg and varargs
|
||||
|
Reference in New Issue
Block a user