patch 8.2.1813: Vim9: can assign wrong type to script dict
Problem: Vim9: can assign wrong type to script dict. (Christian J. Robinson)
Solution: Check the type if known.
diff --git a/src/structs.h b/src/structs.h
index 86c6ef8..e7b72de 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -4055,6 +4055,7 @@
dict_T *ll_dict; // The Dictionary or NULL
dictitem_T *ll_di; // The dictitem or NULL
char_u *ll_newkey; // New key for Dict in alloc. mem or NULL.
+ type_T *ll_valtype; // type expected for the value or NULL
blob_T *ll_blob; // The Blob or NULL
} lval_T;