mirror of
https://github.com/vim/vim.git
synced 2025-11-08 10:27:32 -05:00
patch 8.2.0570: Vim9: no error when omitting type from argument
Problem: Vim9: no error when omitting type from argument. Solution: Enforce specifying argument types.
This commit is contained in:
@@ -250,6 +250,7 @@ enddef
|
||||
def Test_arg_type_wrong()
|
||||
CheckScriptFailure(['def Func3(items: list)', 'echo "a"', 'enddef'], 'E1008: Missing <type>')
|
||||
CheckScriptFailure(['def Func4(...)', 'echo "a"', 'enddef'], 'E1055: Missing name after ...')
|
||||
CheckScriptFailure(['def Func5(items)', 'echo "a"'], 'E1077:')
|
||||
enddef
|
||||
|
||||
def Test_vim9script_call()
|
||||
|
||||
Reference in New Issue
Block a user