forked from aniani/vim
patch 8.2.3854: Vim9: inconsistent arguments for test functions
Problem: Vim9: inconsistent arguments for test functions. Solution: When :def function and script have different arguments use a list with two items instead of a separate function.
This commit is contained in:
@@ -491,7 +491,7 @@ def Test_call_varargs()
|
||||
enddef
|
||||
|
||||
def Test_call_white_space()
|
||||
CheckDefAndScriptFailure2(["call Test ('text')"], 'E476:', 'E1068:')
|
||||
CheckDefAndScriptFailure(["call Test ('text')"], ['E476:', 'E1068:'])
|
||||
enddef
|
||||
|
||||
def MyDefaultArgs(name = 'string'): string
|
||||
|
Reference in New Issue
Block a user