0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 9.1.0952: Vim9: missing type checking for any type assignment

Problem:  Vim9: missing type checking for any type assignment
          (Ernie Rael)
Solution: when assigning to a list item, if the type of the LHS item is
          any, then use the list item type (Yegappan Lakshmanan)

fixes: #15208
closes: #16274

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Yegappan Lakshmanan
2024-12-22 14:44:35 +01:00
committed by Christian Brabandt
parent 62e3014ab1
commit 92195ae72f
5 changed files with 85 additions and 2 deletions

View File

@@ -4692,6 +4692,7 @@ typedef struct lval_S
int ll_oi; // The object/class member index
int ll_is_root; // TRUE if ll_tv is the lval_root, like a
// plain object/class. ll_tv is variable.
garray_T ll_type_list; // list of pointers to allocated types
} lval_T;
/**