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

patch 9.0.1045: in a class object members cannot be initialized

Problem:    In a class object members cannot be initialized.
Solution:   Support initializing object members. Make "dissassemble" work on
            an object method.
This commit is contained in:
Bram Moolenaar
2022-12-10 18:42:12 +00:00
parent 6c87bbb4e4
commit 7ce7daf6cd
13 changed files with 280 additions and 74 deletions

View File

@@ -1463,8 +1463,9 @@ typedef struct {
* Entry for an object member variable.
*/
typedef struct {
char_u *om_name; // allocated
char_u *om_name; // allocated
type_T *om_type;
char_u *om_init; // allocated
} objmember_T;
// "class_T": used for v_class of typval of VAR_CLASS