mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 8.2.2846: Vim9: "echo Func()" does not give an error for using void
Problem: Vim9: "echo Func()" does not give an error for a function without a return value. Solution: Give an error. Be more specific about why a value is invalid.
This commit is contained in:
@@ -3175,7 +3175,8 @@ execute_common(typval_T *argvars, typval_T *rettv, int arg_off)
|
||||
else if (argvars[arg_off].v_type == VAR_JOB
|
||||
|| argvars[arg_off].v_type == VAR_CHANNEL)
|
||||
{
|
||||
emsg(_(e_inval_string));
|
||||
semsg(_(e_using_invalid_value_as_string_str),
|
||||
vartype_name(argvars[arg_off].v_type));
|
||||
return;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user