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/vim9instr.c | |
parent | f450804e1438307c79a62053f8c32eef1508383a (diff) | |
download | vim-git-9.0.1203.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.c | 3 |
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; |