diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-02-15 15:37:11 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-02-15 15:37:11 +0000 |
commit | e88c6b7a5d8b24f8aa9a3e976b78654bae293ae4 (patch) | |
tree | 465389083108b640db744bf4c06673695f7497a9 /src/testdir/test_vim9_builtin.vim | |
parent | 4556a2e8681c5c98fb4c7ca0a016924a69b4452a (diff) |
patch 8.2.4390: Vim9: list from declaration with inferred type not setv8.2.4390
Problem: Vim9: list from declaration with inferred type does not set the
type on the value.
Solution: When inferring the type in a variable declaration also set the
type of the list or dictionary. (closes #9705) Do not set the
type when the member is "any".
Diffstat (limited to 'src/testdir/test_vim9_builtin.vim')
-rw-r--r-- | src/testdir/test_vim9_builtin.vim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_builtin.vim b/src/testdir/test_vim9_builtin.vim index 23b9c4936b..09cfd707d9 100644 --- a/src/testdir/test_vim9_builtin.vim +++ b/src/testdir/test_vim9_builtin.vim @@ -1129,6 +1129,7 @@ def Test_extend_with_error_function() def Test() var d: dict<any> = {} d->extend({A: 10, Func: function('F', [])}) + d.Func() enddef Test() |