forked from aniani/vim
patch 9.0.2019: Vim9: no support for funcrefs
Problem: Vim9: no support for funcrefs Solution: Add support for object/class funcref members closes: #11981 #12417 #12960 #12324 #13333 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
committed by
Christian Brabandt
parent
69fb5afb3b
commit
29bb67f1be
@@ -144,7 +144,7 @@ alloc_type(type_T *type)
|
||||
if (ret->tt_member != NULL)
|
||||
ret->tt_member = alloc_type(ret->tt_member);
|
||||
|
||||
if (type->tt_args != NULL)
|
||||
if (type->tt_argcount > 0 && type->tt_args != NULL)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -153,6 +153,8 @@ alloc_type(type_T *type)
|
||||
for (i = 0; i < type->tt_argcount; ++i)
|
||||
ret->tt_args[i] = alloc_type(type->tt_args[i]);
|
||||
}
|
||||
else
|
||||
ret->tt_args = NULL;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user