]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 8.2.3991: Vim9: error when extending dict<any> v8.2.3991
authorBram Moolenaar <Bram@vim.org>
Mon, 3 Jan 2022 12:28:03 +0000 (12:28 +0000)
committerBram Moolenaar <Bram@vim.org>
Mon, 3 Jan 2022 12:28:03 +0000 (12:28 +0000)
commit114dbda7858df956161c0adba5d4d8279645ff67
tree3723c994d332ef83873644bee1119e9805dc87d3
parent5c75eed758fbeb39825834d51f3ee4e08f137af3
patch 8.2.3991: Vim9: error when extending dict<any>

Problem:    Vim9: error when extending dict<any> with another type that it was
            initialized with.
Solution:   Also set the type for dict<any> if the initializer has a more
            specific type. (closes #9461)
src/eval.c
src/list.c
src/testdir/test_vim9_assign.vim
src/testdir/test_vim9_builtin.vim
src/testdir/test_vim9_func.vim
src/version.c
src/vim9.h
src/vim9compile.c
src/vim9script.c
src/vim9type.c