diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-07-08 20:57:24 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-07-08 20:57:24 +0200 |
commit | f055d4502365f24de6c0f210a06e2c146a75dc4d (patch) | |
tree | 507f31a2d9b5a7ff03b410f1be7066ca97fdb0d9 /src/proto/vim9script.pro | |
parent | f32f099761e5ae0603149b305a0086e4f4627d81 (diff) |
patch 8.2.3128: Vim9: uninitialzed list does not get type checkedv8.2.3128
Problem: Vim9: uninitialzed list does not get type checked.
Solution: Set the type when initializing the variable. (closes #8529)
Diffstat (limited to 'src/proto/vim9script.pro')
-rw-r--r-- | src/proto/vim9script.pro | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proto/vim9script.pro b/src/proto/vim9script.pro index 41bf1287a1..14f0800dc5 100644 --- a/src/proto/vim9script.pro +++ b/src/proto/vim9script.pro @@ -16,7 +16,7 @@ char_u *vim9_declare_scriptvar(exarg_T *eap, char_u *arg); void update_vim9_script_var(int create, dictitem_T *di, int flags, typval_T *tv, type_T **type, int do_member); void hide_script_var(scriptitem_T *si, int idx, int func_defined); void free_all_script_vars(scriptitem_T *si); -svar_T *find_typval_in_script(typval_T *dest); +svar_T *find_typval_in_script(typval_T *dest, int give_error); int check_script_var_type(typval_T *dest, typval_T *value, char_u *name, where_T where); int check_reserved_name(char_u *name); /* vim: set ft=c : */ |