diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-01-07 20:23:33 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-01-07 20:23:33 +0100 |
commit | 43b69b39acb85a2aab2310cba5a2dbac338a4eb9 (patch) | |
tree | d6b8a3ca1e04ed32814caf9bbc596dd5f48329c8 /src/testdir/test_vim9_builtin.vim | |
parent | c37b655443e0a11a77a9f0707e3259ab4b8b3dda (diff) |
patch 8.2.2310: Vim9: winsaveview() return type is too genericv8.2.2310
Problem: Vim9: winsaveview() return type is too generic.
Solution: use dict<number> instead of dict<any>. (closes #7626)
Diffstat (limited to 'src/testdir/test_vim9_builtin.vim')
-rw-r--r-- | src/testdir/test_vim9_builtin.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_builtin.vim b/src/testdir/test_vim9_builtin.vim index 4eb2d76dfd..7aef315dc8 100644 --- a/src/testdir/test_vim9_builtin.vim +++ b/src/testdir/test_vim9_builtin.vim @@ -786,6 +786,16 @@ def Test_winrestcmd() close enddef +def Test_winsaveview() + var view: dict<number> = winsaveview() + + var lines =<< trim END + var view: list<number> = winsaveview() + END + CheckDefAndScriptFailure(lines, 'E1012: Type mismatch; expected list<number> but got dict<number>', 1) +enddef + + " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker |