1
0
forked from aniani/vim

patch 9.0.1334: using tt_member for the class leads to mistakes

Problem:    Using tt_member for the class leads to mistakes.
Solution:   Add a separate tt_class field.
This commit is contained in:
Bram Moolenaar
2023-02-21 12:38:51 +00:00
parent 938ae280c7
commit b1e32ac0c9
8 changed files with 119 additions and 118 deletions

View File

@@ -263,7 +263,7 @@ compile_class_object_index(cctx_T *cctx, char_u **arg, type_T *type)
return FAIL;
}
class_T *cl = (class_T *)type->tt_member;
class_T *cl = type->tt_class;
int is_super = type->tt_flags & TTFLAG_SUPER;
if (type == &t_super)
{