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:
committed by
Christian Brabandt
parent
b9a974df9e
commit
fe7b20a1a3
@@ -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
|
||||
|
Reference in New Issue
Block a user