mirror of
https://github.com/vim/vim.git
synced 2025-10-17 07:44:28 -04:00
patch 8.2.1425: Vim9: cannot use call() without :call
Problem: Vim9: cannot use call() without :call. Solution: Do not skip over "call(". (closes #6689)
This commit is contained in:
@@ -290,6 +290,12 @@ def Test_call_def_varargs()
|
||||
CheckScriptFailure(lines, 'E1013:')
|
||||
enddef
|
||||
|
||||
def Test_call_call()
|
||||
let l = [3, 2, 1]
|
||||
call('reverse', [l])
|
||||
assert_equal([1, 2, 3], l)
|
||||
enddef
|
||||
|
||||
let s:value = ''
|
||||
|
||||
def FuncOneDefArg(opt = 'text')
|
||||
|
Reference in New Issue
Block a user