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:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user