diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-27 16:36:29 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-27 16:36:29 +0000 |
commit | 35c807df1f5774f09612d756ddc3cd5c44eacaca (patch) | |
tree | 5f591a6dd01925947e2e3c6e9c6e5a5ae8c3dc77 /src/testdir/test_vim9_assign.vim | |
parent | 94373c48e7e438e5b924b34ce820e9b2eb9f810c (diff) | |
download | vim-git-35c807df1f5774f09612d756ddc3cd5c44eacaca.tar.gz |
patch 8.2.4231: Vim9: map() gives type error when type was not declaredv8.2.4231
Problem: Vim9: map() gives type error when type was not declared.
Solution: Only check the type when it was declared, like extend() does.
(closes #9635)
Diffstat (limited to 'src/testdir/test_vim9_assign.vim')
-rw-r--r-- | src/testdir/test_vim9_assign.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testdir/test_vim9_assign.vim b/src/testdir/test_vim9_assign.vim index 7f4d87ab3..0af1d5bb0 100644 --- a/src/testdir/test_vim9_assign.vim +++ b/src/testdir/test_vim9_assign.vim @@ -1963,7 +1963,7 @@ def Test_var_list_dict_type() var ll: list<number> ll = [1, 2, 3]->map('"one"') END - CheckDefExecFailure(lines, 'E1012: Type mismatch; expected number but got string') + CheckDefExecFailure(lines, 'E1012: Type mismatch; expected list<number> but got list<string>') enddef def Test_cannot_use_let() |