mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
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