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/vim9script.c b/src/vim9script.c
index e86150a..ed1d6da 100644
--- a/src/vim9script.c
+++ b/src/vim9script.c
@@ -580,7 +580,7 @@
semsg(_(e_readonlyvar), name);
return FAIL;
}
- return check_typval_type(sv->sv_type, value);
+ return check_typval_type(sv->sv_type, value, 0);
}
}
iemsg("check_script_var_type(): not found");