summaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-07-22 14:58:47 +0200
committerBram Moolenaar <Bram@vim.org>2021-07-22 14:58:47 +0200
commit7a3fe3e180bdbce8f193abdf399559c5154bdaae (patch)
tree842eac4734c81db7a49ddaaf20b4fea732bb8162 /src/eval.c
parenta74901929e999a0052c1ce388ab09359c10cbb0d (diff)
patch 8.2.3200: Vim9: hard to guess where a type error is givenv8.2.3200
Problem: Vim9: hard to guess where a type error is given. Solution: Add the function name where possible. (closes #8608)
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/eval.c b/src/eval.c
index a5c889af87..bfe9f61361 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -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)