mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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.
This commit is contained in:
@@ -3386,7 +3386,8 @@ call_func(
|
||||
&& 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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user