Mercurial > vim
diff src/proto/vim9compile.pro @ 22898:a8bccb0634bc v8.2.1996
patch 8.2.1996: Vim9: invalid error for argument of extend()
Commit: https://github.com/vim/vim/commit/193f6201b4d5c76f8dc1faa1dcf369575d93fe3a
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Nov 16 20:08:35 2020 +0100
patch 8.2.1996: Vim9: invalid error for argument of extend()
Problem: Vim9: invalid error for argument of extend().
Solution: Check if the type could match. (closes https://github.com/vim/vim/issues/7299)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 16 Nov 2020 20:15:04 +0100 |
parents | 107eae953b87 |
children | 00b0275ffe7f |
line wrap: on
line diff
--- a/src/proto/vim9compile.pro +++ b/src/proto/vim9compile.pro @@ -1,6 +1,7 @@ /* vim9compile.c */ int check_defined(char_u *p, size_t len, cctx_T *cctx); int check_compare_types(exptype_T type, typval_T *tv1, typval_T *tv2); +int use_typecheck(type_T *actual, type_T *expected); int get_script_item_idx(int sid, char_u *name, int check_writable, cctx_T *cctx); imported_T *find_imported(char_u *name, size_t len, cctx_T *cctx); imported_T *find_imported_in_script(char_u *name, size_t len, int sid);