0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.3200: Vim9: hard to guess where a type error is given

Problem:    Vim9: hard to guess where a type error is given.
Solution:   Add the function name where possible. (closes #8608)
This commit is contained in:
Bram Moolenaar
2021-07-22 14:58:47 +02:00
parent a74901929e
commit 7a3fe3e180
13 changed files with 78 additions and 49 deletions

View File

@@ -1365,8 +1365,8 @@ set_var_lval(
}
else
{
if (lp->ll_type != NULL
&& check_typval_arg_type(lp->ll_type, rettv, 0) == FAIL)
if (lp->ll_type != NULL && check_typval_arg_type(lp->ll_type, rettv,
NULL, 0) == FAIL)
return;
set_var_const(lp->ll_name, lp->ll_type, rettv, copy,
flags, var_idx);
@@ -1450,7 +1450,8 @@ set_var_lval(
}
if (lp->ll_valtype != NULL
&& check_typval_arg_type(lp->ll_valtype, rettv, 0) == FAIL)
&& check_typval_arg_type(lp->ll_valtype, rettv,
NULL, 0) == FAIL)
return;
if (lp->ll_newkey != NULL)