Mercurial > vim
comparison src/proto/vim9compile.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 | cb4831fa7e25 |
children | 1693ca876049 |
comparison
equal
deleted
inserted
replaced
20841:f0411e161f00 | 20842:bacc2ab11810 |
---|---|
1 /* vim9compile.c */ | 1 /* vim9compile.c */ |
2 int check_defined(char_u *p, int len, cctx_T *cctx); | 2 int check_defined(char_u *p, int len, cctx_T *cctx); |
3 type_T *typval2type(typval_T *tv); | |
4 int check_type(type_T *expected, type_T *actual, int give_msg); | |
3 char_u *skip_type(char_u *start); | 5 char_u *skip_type(char_u *start); |
4 type_T *parse_type(char_u **arg, garray_T *type_gap); | 6 type_T *parse_type(char_u **arg, garray_T *type_gap); |
5 char *vartype_name(vartype_T type); | 7 char *vartype_name(vartype_T type); |
6 char *type_name(type_T *type, char **tofree); | 8 char *type_name(type_T *type, char **tofree); |
7 int get_script_item_idx(int sid, char_u *name, int check_writable); | 9 int get_script_item_idx(int sid, char_u *name, int check_writable); |