0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.3128: Vim9: uninitialzed list does not get type checked

Problem:    Vim9: uninitialzed list does not get type checked.
Solution:   Set the type when initializing the variable. (closes #8529)
This commit is contained in:
Bram Moolenaar
2021-07-08 20:57:24 +02:00
parent f32f099761
commit f055d45023
7 changed files with 38 additions and 9 deletions

View File

@@ -959,7 +959,7 @@ get_lval(
&& lp->ll_tv == &v->di_tv
&& ht != NULL && ht == get_script_local_ht())
{
svar_T *sv = find_typval_in_script(lp->ll_tv);
svar_T *sv = find_typval_in_script(lp->ll_tv, TRUE);
// Vim9 script local variable: get the type
if (sv != NULL)