Mercurial > vim
comparison src/proto/vim9script.pro @ 26302:7351926fbe9e v8.2.3682
patch 8.2.3682: Vim9: assigning to a script variable drops the type
Commit: https://github.com/vim/vim/commit/7824fc80f675b8098e6483ce082e287aad14b6da
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Nov 26 17:36:51 2021 +0000
patch 8.2.3682: Vim9: assigning to a script variable drops the type
Problem: Vim9: assigning to a script variable drops the required type.
Solution: Lookup the type of the variable and use it. (closes https://github.com/vim/vim/issues/9219)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 26 Nov 2021 18:45:03 +0100 |
parents | 15b54e0a576b |
children | 8796f1384750 |
comparison
equal
deleted
inserted
replaced
26301:cfab63c48045 | 26302:7351926fbe9e |
---|---|
14 int find_exported(int sid, char_u *name, ufunc_T **ufunc, type_T **type, cctx_T *cctx, int verbose); | 14 int find_exported(int sid, char_u *name, ufunc_T **ufunc, type_T **type, cctx_T *cctx, int verbose); |
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 svar_T *find_typval_in_script(typval_T *dest); | 18 svar_T *find_typval_in_script(typval_T *dest); |
19 int check_script_var_type(typval_T *dest, typval_T *value, char_u *name, where_T where); | 19 int check_script_var_type(svar_T *sv, typval_T *value, char_u *name, where_T where); |
20 int check_reserved_name(char_u *name); | 20 int check_reserved_name(char_u *name); |
21 /* vim: set ft=c : */ | 21 /* vim: set ft=c : */ |