0
0
mirror of https://github.com/vim/vim.git synced 2025-10-03 05:14:07 -04:00

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

@@ -1619,7 +1619,8 @@ generate_BCALL(cctx_T *cctx, int func_idx, int argcount, int method_call)
// Drop the argument types and push the return type.
stack->ga_len -= argcount;
type = internal_func_ret_type(func_idx, argcount, argtypes, &decl_type);
type = internal_func_ret_type(func_idx, argcount, argtypes, &decl_type,
cctx->ctx_type_list);
if (push_type_stack2(cctx, type, decl_type) == FAIL)
return FAIL;