1
0
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:
Bram Moolenaar
2020-08-30 23:24:20 +02:00
parent 02aaad9109
commit 8b565c2c15
8 changed files with 39 additions and 37 deletions

View File

@@ -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");