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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user