mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -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:
@@ -1512,7 +1512,7 @@ deref_func_name(
|
||||
{
|
||||
if (type != NULL && ht == get_script_local_ht())
|
||||
{
|
||||
svar_T *sv = find_typval_in_script(&v->di_tv);
|
||||
svar_T *sv = find_typval_in_script(&v->di_tv, TRUE);
|
||||
|
||||
if (sv != NULL)
|
||||
*type = sv->sv_type;
|
||||
|
Reference in New Issue
Block a user