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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user