summaryrefslogtreecommitdiff
path: root/src/vim9instr.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2023-01-15 18:17:12 +0000
committerBram Moolenaar <Bram@vim.org>2023-01-15 18:17:12 +0000
commit32517c4c14ed3f9240fcd5b7c01d0ca2e586f7e4 (patch)
tree952885cfa5a07de6a06fd0372230f793c67edfc9 /src/vim9instr.c
parentf450804e1438307c79a62053f8c32eef1508383a (diff)
downloadvim-git-32517c4c14ed3f9240fcd5b7c01d0ca2e586f7e4.tar.gz
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/vim9instr.c')
-rw-r--r--src/vim9instr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vim9instr.c b/src/vim9instr.c
index 72ecbaa65..118e88583 100644
--- a/src/vim9instr.c
+++ b/src/vim9instr.c
@@ -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;