summaryrefslogtreecommitdiff
path: root/src/testdir/test_vim9_assign.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-27 16:36:29 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-27 16:36:29 +0000
commit35c807df1f5774f09612d756ddc3cd5c44eacaca (patch)
tree5f591a6dd01925947e2e3c6e9c6e5a5ae8c3dc77 /src/testdir/test_vim9_assign.vim
parent94373c48e7e438e5b924b34ce820e9b2eb9f810c (diff)
downloadvim-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.vim2
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()