0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.3890: Vim9: type check for using v: variables is basic

Problem:    Vim9: type check for using v: variables is basic.
Solution:   Specify a more precise type.
This commit is contained in:
Bram Moolenaar
2021-12-24 21:36:12 +00:00
parent e7f4abd38b
commit d787e40fdb
5 changed files with 141 additions and 117 deletions

View File

@@ -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);
}