diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-07-08 20:57:24 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-07-08 20:57:24 +0200 |
commit | f055d4502365f24de6c0f210a06e2c146a75dc4d (patch) | |
tree | 507f31a2d9b5a7ff03b410f1be7066ca97fdb0d9 /src/eval.c | |
parent | f32f099761e5ae0603149b305a0086e4f4627d81 (diff) | |
download | vim-git-f055d4502365f24de6c0f210a06e2c146a75dc4d.tar.gz |
patch 8.2.3128: Vim9: uninitialzed list does not get type checkedv8.2.3128
Problem: Vim9: uninitialzed list does not get type checked.
Solution: Set the type when initializing the variable. (closes #8529)
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c index e0f081603..555cd38f2 100644 --- a/src/eval.c +++ b/src/eval.c @@ -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) |