forked from aniani/vim
patch 9.0.1203: return type of values() is always list<any>
Problem: Return type of values() is always list<any>. Solution: Use the member type if possible. (issue #11822)
This commit is contained in:
@@ -539,7 +539,8 @@ typval2type_int(typval_T *tv, int copyID, garray_T *type_gap, int flags)
|
||||
type_T *decl_type; // unused
|
||||
|
||||
internal_func_get_argcount(idx, &argcount, &min_argcount);
|
||||
member_type = internal_func_ret_type(idx, 0, NULL, &decl_type);
|
||||
member_type = internal_func_ret_type(idx, 0, NULL, &decl_type,
|
||||
type_gap);
|
||||
}
|
||||
else
|
||||
ufunc = find_func(name, FALSE);
|
||||
|
||||
Reference in New Issue
Block a user