forked from aniani/vim
patch 9.0.1053: default constructor arguments are not optional
Problem: Default constructor arguments are not optional. Solution: Use "= v:none" to make constructor arguments optional.
This commit is contained in:
@@ -269,6 +269,7 @@ ex_class(exarg_T *eap)
|
||||
ga_concat(&fga, (char_u *)"this.");
|
||||
objmember_T *m = cl->class_obj_members + i;
|
||||
ga_concat(&fga, (char_u *)m->om_name);
|
||||
ga_concat(&fga, (char_u *)" = v:none");
|
||||
}
|
||||
ga_concat(&fga, (char_u *)")\nenddef\n");
|
||||
ga_append(&fga, NUL);
|
||||
|
Reference in New Issue
Block a user