mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.3107: Vim9: error for arguments while type didn't specify arguments
Problem: Vim9: error for arguments while type didn't specify arguments. Solution: Do not update that type to check when no argument count is specified. (closes #8492)
This commit is contained in:
@@ -681,6 +681,16 @@ def Test_assignment_partial()
|
||||
assert_equal('done', Partial())
|
||||
END
|
||||
CheckDefAndScriptSuccess(lines)
|
||||
|
||||
lines =<< trim END
|
||||
vim9script
|
||||
def Func(b: bool)
|
||||
enddef
|
||||
var Ref: func = function(Func, [true])
|
||||
assert_equal('func()', typename(Ref))
|
||||
Ref()
|
||||
END
|
||||
CheckScriptSuccess(lines)
|
||||
enddef
|
||||
|
||||
def Test_assignment_list_any_index()
|
||||
|
Reference in New Issue
Block a user