mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04: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:
@@ -2273,9 +2273,12 @@ rewind_conditionals(
|
||||
* ":endfunction" when not after a ":function"
|
||||
*/
|
||||
void
|
||||
ex_endfunction(exarg_T *eap UNUSED)
|
||||
ex_endfunction(exarg_T *eap)
|
||||
{
|
||||
emsg(_("E193: :endfunction not inside a function"));
|
||||
if (eap->cmdidx == CMD_enddef)
|
||||
emsg(_("E193: :enddef not inside a function"));
|
||||
else
|
||||
emsg(_("E193: :endfunction not inside a function"));
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user