mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 9.1.0520: Vim9: incorrect type checking for modifying lists
Problem: Vim9: incorrect type checking for modifying lists Solution: Correctly assign the member declared types and generate typechecks, add disassembly test (LemonBoy) fixes: #15090 closes: #15094 Signed-off-by: LemonBoy <thatlemon@gmail.com> Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
9d85d4dcf9
commit
f4af331d08
@@ -1280,6 +1280,7 @@ add_class_members(class_T *cl, exarg_T *eap, garray_T *type_list_gap)
|
||||
tv->v_type = m->ocm_type->tt_type;
|
||||
tv->vval.v_string = NULL;
|
||||
}
|
||||
set_tv_type(tv, m->ocm_type);
|
||||
if (m->ocm_flags & OCMFLAG_CONST)
|
||||
item_lock(tv, DICT_MAXNEST, TRUE, TRUE);
|
||||
}
|
||||
|
Reference in New Issue
Block a user