diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-12-24 21:36:12 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-24 21:36:12 +0000 |
commit | d787e40fdbe6f4d8bf47d36186c1d9d51c29b853 (patch) | |
tree | 7d55c1381d9d0ab309fec50c463e33b281c05d1e /src/vim9instr.c | |
parent | e7f4abd38b6e05100c699900c8f87281e363beb2 (diff) | |
download | vim-git-d787e40fdbe6f4d8bf47d36186c1d9d51c29b853.tar.gz |
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.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vim9instr.c b/src/vim9instr.c index 06d6b9004..0468f336c 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); } |