0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 9.0.1977: Vim9: object members can change type

Problem:  Vim9: object members can change type
Solution: Check type during assignment to object/class var

closes: #13127
closes: #13262

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
Yegappan Lakshmanan
2023-10-04 19:47:52 +02:00
committed by Christian Brabandt
parent b9a974df9e
commit fe7b20a1a3
6 changed files with 462 additions and 11 deletions

View File

@@ -1509,10 +1509,11 @@ typedef enum {
* Entry for an object or class member variable.
*/
typedef struct {
char_u *ocm_name; // allocated
char_u *ocm_name; // allocated
omacc_T ocm_access;
int ocm_has_type; // type specified explicitly
type_T *ocm_type;
char_u *ocm_init; // allocated
char_u *ocm_init; // allocated
} ocmember_T;
// used for the lookup table of a class member index and object method index