]> granicus.if.org Git - vim/commit
patch 8.2.3996: Vim9: type checking lacks information about declared type v8.2.3996
authorBram Moolenaar <Bram@vim.org>
Tue, 4 Jan 2022 15:17:03 +0000 (15:17 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 4 Jan 2022 15:17:03 +0000 (15:17 +0000)
commit078a46161e8b1b30bf306d6c1f4f0af7c616a989
tree334c2fa968e1641524028ac18afedf5980446e64
parent9acf2d8be93f3b50607279e7f3484b019675d0a7
patch 8.2.3996: Vim9: type checking lacks information about declared type

Problem:    Vim9: type checking for list and dict lacks information about
            declared type.
Solution:   Add dv_decl_type and lv_decl_type.  Refactor the type stack to
            store two types in each entry.
17 files changed:
src/dict.c
src/evalbuffer.c
src/evalfunc.c
src/list.c
src/proto/evalbuffer.pro
src/proto/evalfunc.pro
src/proto/vim9instr.pro
src/proto/vim9type.pro
src/structs.h
src/testdir/test_vim9_assign.vim
src/testdir/test_vim9_builtin.vim
src/version.c
src/vim9cmds.c
src/vim9compile.c
src/vim9expr.c
src/vim9instr.c
src/vim9type.c