patch 8.2.1551: Vim9: error for argument type does not mention the number
Problem: Vim9: error for argument type does not mention the number.
Solution: Pass the argument number to where the error is given.
diff --git a/src/eval.c b/src/eval.c
index d12708e..be3f462 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -1291,7 +1291,7 @@
else
{
if (lp->ll_type != NULL
- && check_typval_type(lp->ll_type, rettv) == FAIL)
+ && check_typval_type(lp->ll_type, rettv, 0) == FAIL)
return;
set_var_const(lp->ll_name, lp->ll_type, rettv, copy, flags);
}