From 32517c4c14ed3f9240fcd5b7c01d0ca2e586f7e4 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 15 Jan 2023 18:17:12 +0000 Subject: patch 9.0.1203: return type of values() is always list Problem: Return type of values() is always list. Solution: Use the member type if possible. (issue #11822) --- src/vim9instr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/vim9instr.c') 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; -- cgit v1.2.1