Mercurial > vim
comparison src/proto/vim9script.pro @ 20842:bacc2ab11810 v8.2.0973
patch 8.2.0973: Vim9: type is not checked when assigning to a script variable
Commit: https://github.com/vim/vim/commit/34db91f7a47b7bd4aabf1e1dfbaa8a08278bf78d
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jun 13 19:00:10 2020 +0200
patch 8.2.0973: Vim9: type is not checked when assigning to a script variable
Problem: Vim9: type is not checked when assigning to a script variable.
Solution: Check the type.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 13 Jun 2020 19:15:03 +0200 |
parents | 0600ab7b9f09 |
children | 96bf2b304932 |
comparison
equal
deleted
inserted
replaced
20841:f0411e161f00 | 20842:bacc2ab11810 |
---|---|
5 void free_imports(int sid); | 5 void free_imports(int sid); |
6 void ex_import(exarg_T *eap); | 6 void ex_import(exarg_T *eap); |
7 int find_exported(int sid, char_u **argp, int *name_len, ufunc_T **ufunc, type_T **type); | 7 int find_exported(int sid, char_u **argp, int *name_len, ufunc_T **ufunc, type_T **type); |
8 char_u *handle_import(char_u *arg_start, garray_T *gap, int import_sid, void *cctx); | 8 char_u *handle_import(char_u *arg_start, garray_T *gap, int import_sid, void *cctx); |
9 char_u *vim9_declare_scriptvar(exarg_T *eap, char_u *arg); | 9 char_u *vim9_declare_scriptvar(exarg_T *eap, char_u *arg); |
10 void check_script_var_type(typval_T *dest, typval_T *value, char_u *name); | |
10 /* vim: set ft=c : */ | 11 /* vim: set ft=c : */ |