comparison src/proto/vim9script.pro @ 25184:e495f40e4b07 v8.2.3128

patch 8.2.3128: Vim9: uninitialzed list does not get type checked Commit: https://github.com/vim/vim/commit/f055d4502365f24de6c0f210a06e2c146a75dc4d Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jul 8 20:57:24 2021 +0200 patch 8.2.3128: Vim9: uninitialzed list does not get type checked Problem: Vim9: uninitialzed list does not get type checked. Solution: Set the type when initializing the variable. (closes https://github.com/vim/vim/issues/8529)
author Bram Moolenaar <Bram@vim.org>
date Thu, 08 Jul 2021 21:00:06 +0200
parents bf8feac8a89a
children 0a3b1c66d3f2
comparison
equal deleted inserted replaced
25183:e0cd3f2fa919 25184:e495f40e4b07
14 char_u *handle_import(char_u *arg_start, garray_T *gap, int import_sid, evalarg_T *evalarg, void *cctx); 14 char_u *handle_import(char_u *arg_start, garray_T *gap, int import_sid, evalarg_T *evalarg, void *cctx);
15 char_u *vim9_declare_scriptvar(exarg_T *eap, char_u *arg); 15 char_u *vim9_declare_scriptvar(exarg_T *eap, char_u *arg);
16 void update_vim9_script_var(int create, dictitem_T *di, int flags, typval_T *tv, type_T **type, int do_member); 16 void update_vim9_script_var(int create, dictitem_T *di, int flags, typval_T *tv, type_T **type, int do_member);
17 void hide_script_var(scriptitem_T *si, int idx, int func_defined); 17 void hide_script_var(scriptitem_T *si, int idx, int func_defined);
18 void free_all_script_vars(scriptitem_T *si); 18 void free_all_script_vars(scriptitem_T *si);
19 svar_T *find_typval_in_script(typval_T *dest); 19 svar_T *find_typval_in_script(typval_T *dest, int give_error);
20 int check_script_var_type(typval_T *dest, typval_T *value, char_u *name, where_T where); 20 int check_script_var_type(typval_T *dest, typval_T *value, char_u *name, where_T where);
21 int check_reserved_name(char_u *name); 21 int check_reserved_name(char_u *name);
22 /* vim: set ft=c : */ 22 /* vim: set ft=c : */