diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-09-16 15:22:00 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-09-16 15:22:00 +0200 |
commit | 5e654230777ad21363a929dce3cfe0387da031a7 (patch) | |
tree | 967aea5363b039cb47c98bf2ef2e992f182b29da /src/proto/vim9type.pro | |
parent | 8b51b7f0f17af149a8ce76e805050977857f9e50 (diff) | |
download | vim-git-5e654230777ad21363a929dce3cfe0387da031a7.tar.gz |
patch 8.2.1691: Vim9: list<any> is not accepted where list<number> is expectedv8.2.1691
Problem: Vim9: list<any> is not accepted where list<number> is expected.
Solution: Add functions to allocate and free a type_T, use it in
ISN_CHECKTYPE. (closes #6959)
Diffstat (limited to 'src/proto/vim9type.pro')
-rw-r--r-- | src/proto/vim9type.pro | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/proto/vim9type.pro b/src/proto/vim9type.pro index 149248800..e80f303a4 100644 --- a/src/proto/vim9type.pro +++ b/src/proto/vim9type.pro @@ -1,6 +1,8 @@ /* vim9type.c */ -type_T *alloc_type(garray_T *type_gap); +type_T *get_type_ptr(garray_T *type_gap); void clear_type_list(garray_T *gap); +type_T *alloc_type(type_T *type); +void free_type(type_T *type); type_T *get_list_type(type_T *member_type, garray_T *type_gap); type_T *get_dict_type(type_T *member_type, garray_T *type_gap); type_T *alloc_func_type(type_T *ret_type, int argcount, garray_T *type_gap); |