Mercurial > vim
diff src/proto/vim9type.pro @ 27567:5bf2fca4f967 v8.2.4310
patch 8.2.4310: Vim9: constant list and dict get a declaration type
Commit: https://github.com/vim/vim/commit/2626d6a71ca616bd91d4ee2c27bd76a78a00d412
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 6 15:49:35 2022 +0000
patch 8.2.4310: Vim9: constant list and dict get a declaration type
Problem: Vim9: constant list and dict get a declaration type other than
"any".
Solution: A constant list and dict have a declared member type "any".
(closes #9701)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 06 Feb 2022 17:00:03 +0100 |
parents | f00a7a2bee21 |
children | 72e6073a2822 |
line wrap: on
line diff
--- a/src/proto/vim9type.pro +++ b/src/proto/vim9type.pro @@ -27,7 +27,7 @@ int push_type_stack2(cctx_T *cctx, type_ void set_type_on_stack(cctx_T *cctx, type_T *type, int offset); type_T *get_type_on_stack(cctx_T *cctx, int offset); type_T *get_decl_type_on_stack(cctx_T *cctx, int offset); -type_T *get_member_type_from_stack(int count, int skip, type_T **decl_type, cctx_T *cctx); +type_T *get_member_type_from_stack(int count, int skip, cctx_T *cctx); char *vartype_name(vartype_T type); char *type_name(type_T *type, char **tofree); void f_typename(typval_T *argvars, typval_T *rettv);