mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
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.
This commit is contained in:
@@ -1291,7 +1291,7 @@ set_var_lval(
|
||||
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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user