forked from aniani/vim
patch 8.2.2306: Vim9: when using function reference type is not checked
Problem: Vim9: when using function reference type is not checked.
Solution: When using a function reference lookup the type and check the
argument types. (issue #7629)
This commit is contained in:
@@ -3497,7 +3497,8 @@ common_function(typval_T *argvars, typval_T *rettv, int is_funcref)
|
||||
{
|
||||
name = s;
|
||||
trans_name = trans_function_name(&name, &is_global, FALSE,
|
||||
TFN_INT | TFN_QUIET | TFN_NO_AUTOLOAD | TFN_NO_DEREF, NULL, NULL);
|
||||
TFN_INT | TFN_QUIET | TFN_NO_AUTOLOAD | TFN_NO_DEREF,
|
||||
NULL, NULL, NULL);
|
||||
if (*name != NUL)
|
||||
s = NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user