summaryrefslogtreecommitdiff
path: root/src/proto/vim9compile.pro
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-07-19 14:03:09 +0200
committerBram Moolenaar <Bram@vim.org>2020-07-19 14:03:09 +0200
commit65b9545f4494abcb455400c08e51de27bc305866 (patch)
tree092740eb6b516020e030a285cf7089ea496b33f1 /src/proto/vim9compile.pro
parent6434fc574dfbde11461e70e5a62712370edf38e6 (diff)
downloadvim-git-65b9545f4494abcb455400c08e51de27bc305866.tar.gz
patch 8.2.1242: Vim9: no error if calling a function with wrong typev8.2.1242
Problem: Vim9: no error if calling a function with wrong argument type. Solution: Check types of arguments. (closes #6469)
Diffstat (limited to 'src/proto/vim9compile.pro')
-rw-r--r--src/proto/vim9compile.pro1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/vim9compile.pro b/src/proto/vim9compile.pro
index 03862a271..fb379239d 100644
--- a/src/proto/vim9compile.pro
+++ b/src/proto/vim9compile.pro
@@ -3,6 +3,7 @@ int check_defined(char_u *p, size_t len, cctx_T *cctx);
void clear_type_list(garray_T *gap);
type_T *typval2type(typval_T *tv);
int check_type(type_T *expected, type_T *actual, int give_msg);
+int check_argtype(type_T *expected, typval_T *actual_tv);
int check_compare_types(exptype_T type, typval_T *tv1, typval_T *tv2);
char_u *skip_type(char_u *start);
type_T *parse_type(char_u **arg, garray_T *type_gap);