summaryrefslogtreecommitdiffstats
path: root/src/vim9instr.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-12-24 21:36:12 +0000
committerBram Moolenaar <Bram@vim.org>2021-12-24 21:36:12 +0000
commitd787e40fdbe6f4d8bf47d36186c1d9d51c29b853 (patch)
tree7d55c1381d9d0ab309fec50c463e33b281c05d1e /src/vim9instr.c
parente7f4abd38b6e05100c699900c8f87281e363beb2 (diff)
patch 8.2.3890: Vim9: type check for using v: variables is basicv8.2.3890
Problem: Vim9: type check for using v: variables is basic. Solution: Specify a more precise type.
Diffstat (limited to 'src/vim9instr.c')
-rw-r--r--src/vim9instr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vim9instr.c b/src/vim9instr.c
index 06d6b90048..0468f336c7 100644
--- a/src/vim9instr.c
+++ b/src/vim9instr.c
@@ -946,8 +946,7 @@ generate_LOADV(
semsg(_(e_variable_not_found_str), name);
return FAIL;
}
- type = typval2type_vimvar(get_vim_var_tv(vidx), cctx->ctx_type_list);
-
+ type = get_vim_var_type(vidx, cctx->ctx_type_list);
return generate_LOAD(cctx, ISN_LOADV, vidx, NULL, type);
}