Mercurial > vim
diff src/testdir/test_vim9_builtin.vim @ 23691:0d56d4f107d8 v8.2.2387
patch 8.2.2387: runtime type check does not mention argument index
Commit: https://github.com/vim/vim/commit/e32e516dfa46e9c5965d278f96aaf57573de8ac4
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 21 20:21:29 2021 +0100
patch 8.2.2387: runtime type check does not mention argument index
Problem: Runtime type check does not mention argument index.
Solution: Add ct_arg_idx. (closes https://github.com/vim/vim/issues/7720)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 21 Jan 2021 20:30:04 +0100 |
parents | 1974c5122506 |
children | 9092d2a4422a |
line wrap: on
line diff
--- a/src/testdir/test_vim9_builtin.vim +++ b/src/testdir/test_vim9_builtin.vim @@ -263,7 +263,7 @@ def Test_extend_arg_types() CheckDefFailure(['extend({a: 1}, {b: 2}, 1)'], 'E1013: Argument 3: type mismatch, expected string but got number') CheckDefFailure(['extend([1], ["b"])'], 'E1013: Argument 2: type mismatch, expected list<number> but got list<string>') - CheckDefExecFailure(['extend([1], ["b", 1])'], 'E1012: Type mismatch; expected list<number> but got list<any>') + CheckDefExecFailure(['extend([1], ["b", 1])'], 'E1013: Argument 2: type mismatch, expected list<number> but got list<any>') enddef def Test_extendnew()