0
0
mirror of https://github.com/vim/vim.git synced 2025-10-09 06:14:17 -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:
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

@@ -1451,7 +1451,7 @@ struct type_S {
int8_T tt_min_argcount; // number of non-optional arguments
char_u tt_flags; // TTFLAG_ values
type_T *tt_member; // for list, dict, func return type
// for class: class_T
class_T *tt_class; // for class and object
type_T **tt_args; // func argument types, allocated
};