diff options
author | Bram Moolenaar <Bram@vim.org> | 2023-01-15 18:17:12 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-01-15 18:17:12 +0000 |
commit | 32517c4c14ed3f9240fcd5b7c01d0ca2e586f7e4 (patch) | |
tree | 952885cfa5a07de6a06fd0372230f793c67edfc9 /src/vim9type.c | |
parent | f450804e1438307c79a62053f8c32eef1508383a (diff) |
patch 9.0.1203: return type of values() is always list<any>v9.0.1203
Problem: Return type of values() is always list<any>.
Solution: Use the member type if possible. (issue #11822)
Diffstat (limited to 'src/vim9type.c')
-rw-r--r-- | src/vim9type.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vim9type.c b/src/vim9type.c index 9bb53e2fa2..fb32a8628f 100644 --- a/src/vim9type.c +++ b/src/vim9type.c @@ -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); |