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)
diff --git a/src/vim9instr.c b/src/vim9instr.c
index 72ecbaa..118e885 100644
--- a/src/vim9instr.c
+++ b/src/vim9instr.c
@@ -1619,7 +1619,8 @@
// 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;