summaryrefslogtreecommitdiff
path: root/src/proto
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-16 18:06:21 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-16 18:06:21 +0000
commitc84287d6d8dd055bb6e30605465a23a8addb6fde (patch)
tree125f6d9e504f7b676d137e7230522ec92ba67e0d /src/proto
parentdc98776f89689846466462767be75c6b63b6630f (diff)
downloadvim-git-c84287d6d8dd055bb6e30605465a23a8addb6fde.tar.gz
patch 8.2.4114: Vim9: type checking for a funcref does not work for methodv8.2.4114
Problem: Vim9: type checking for a funcref does not work for when it is used in a method. Solution: Pass the base to where the type is checked.
Diffstat (limited to 'src/proto')
-rw-r--r--src/proto/vim9type.pro3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/proto/vim9type.pro b/src/proto/vim9type.pro
index 015531c1e..1c80cbf55 100644
--- a/src/proto/vim9type.pro
+++ b/src/proto/vim9type.pro
@@ -12,12 +12,11 @@ type_T *typval2type(typval_T *tv, int copyID, garray_T *type_gap, int flags);
type_T *typval2type_vimvar(typval_T *tv, garray_T *type_gap);
int check_typval_arg_type(type_T *expected, typval_T *actual_tv, char *func_name, int arg_idx);
int check_typval_type(type_T *expected, typval_T *actual_tv, where_T where);
-void type_mismatch(type_T *expected, type_T *actual);
void arg_type_mismatch(type_T *expected, type_T *actual, int arg_idx);
void type_mismatch_where(type_T *expected, type_T *actual, where_T where);
int check_type(type_T *expected, type_T *actual, int give_msg, where_T where);
int check_type_maybe(type_T *expected, type_T *actual, int give_msg, where_T where);
-int check_argument_types(type_T *type, typval_T *argvars, int argcount, char_u *name);
+int check_argument_types(type_T *type, typval_T *argvars, int argcount, typval_T *base_tv, char_u *name);
char_u *skip_type(char_u *start, int optional);
type_T *parse_type(char_u **arg, garray_T *type_gap, int give_error);
int equal_type(type_T *type1, type_T *type2, int flags);