Mercurial > vim
diff src/vim9instr.c @ 31742:f578bef02249 v9.0.1203
patch 9.0.1203: return type of values() is always list<any>
Commit: https://github.com/vim/vim/commit/32517c4c14ed3f9240fcd5b7c01d0ca2e586f7e4
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 15 18:17:12 2023 +0000
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 https://github.com/vim/vim/issues/11822)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 15 Jan 2023 19:30:04 +0100 |
parents | c467d6e70972 |
children | 48431422f766 |
line wrap: on
line diff
--- a/src/vim9instr.c +++ b/src/vim9instr.c @@ -1619,7 +1619,8 @@ generate_BCALL(cctx_T *cctx, int func_id // 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;