forked from aniani/vim
patch 8.2.3100: Vim9: no error when using type with unknown number of args
Problem: Vim9: no error when using type with unknown number of arguments. Solution: Do not ignore argument count of -1. (closes #8492)
This commit is contained in:
@@ -1030,7 +1030,7 @@ def Test_pass_legacy_lambda_to_def_func()
|
||||
|
||||
lines =<< trim END
|
||||
vim9script
|
||||
def g:TestFunc(f: func())
|
||||
def g:TestFunc(f: func)
|
||||
enddef
|
||||
legacy call g:TestFunc({-> 0})
|
||||
delfunc g:TestFunc
|
||||
|
||||
Reference in New Issue
Block a user