1
0
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:
Bram Moolenaar
2023-01-15 18:17:12 +00:00
parent f450804e14
commit 32517c4c14
6 changed files with 62 additions and 5 deletions

View File

@@ -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);