comparison src/testdir/test_vim9_func.vim @ 20253:6f9010b6f7f9 v8.2.0682

patch 8.2.0682: Vim9: parsing function argument type can get stuck Commit: https://github.com/vim/vim/commit/1c0d44f8efae36c079cb8be395785827aa0b2737 Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 2 19:04:58 2020 +0200 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.
author Bram Moolenaar <Bram@vim.org>
date Sat, 02 May 2020 19:15:04 +0200
parents e46e72aaff74
children aac52c32a91f
comparison
equal deleted inserted replaced
20252:b5a5cffac014 20253:6f9010b6f7f9
111 111
112 def Test_call_wrong_args() 112 def Test_call_wrong_args()
113 call CheckDefFailure(['TakesOneArg()'], 'E119:') 113 call CheckDefFailure(['TakesOneArg()'], 'E119:')
114 call CheckDefFailure(['TakesOneArg(11, 22)'], 'E118:') 114 call CheckDefFailure(['TakesOneArg(11, 22)'], 'E118:')
115 call CheckDefFailure(['bufnr(xxx)'], 'E1001:') 115 call CheckDefFailure(['bufnr(xxx)'], 'E1001:')
116 call CheckScriptFailure(['def Func(Ref: func(s: string))'], 'E475:')
116 enddef 117 enddef
117 118
118 " Default arg and varargs 119 " Default arg and varargs
119 def MyDefVarargs(one: string, two = 'foo', ...rest: list<string>): string 120 def MyDefVarargs(one: string, two = 'foo', ...rest: list<string>): string
120 let res = one .. ',' .. two 121 let res = one .. ',' .. two