patch 8.2.4114: Vim9: type checking for a funcref does not work for method
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.
diff --git a/src/userfunc.c b/src/userfunc.c
index 1dd5612..0fb042e 100644
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -3386,7 +3386,8 @@
&& funcexe->fe_evaluate)
{
// Check that the argument types are OK for the types of the funcref.
- if (check_argument_types(funcexe->fe_check_type, argvars, argcount,
+ if (check_argument_types(funcexe->fe_check_type,
+ argvars, argcount, funcexe->fe_basetv,
(name != NULL) ? name : funcname) == FAIL)
error = FCERR_OTHER;
}