forked from aniani/vim
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:
@@ -580,7 +580,7 @@ check_script_var_type(typval_T *dest, typval_T *value, char_u *name)
|
||||
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");
|
||||
|
Reference in New Issue
Block a user