Mercurial > vim
comparison src/vim9class.c @ 31441:e572ff386670 v9.0.1053
patch 9.0.1053: default constructor arguments are not optional
Commit: https://github.com/vim/vim/commit/65b0d1676814ee08fb58ef8d64dd342d1d883192
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Dec 13 18:43:22 2022 +0000
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 13 Dec 2022 19:45:04 +0100 |
parents | e31fc75f6aff |
children | 9ae3720f9bd9 |
comparison
equal
deleted
inserted
replaced
31440:5a24ca193fe9 | 31441:e572ff386670 |
---|---|
267 if (i > 0) | 267 if (i > 0) |
268 ga_concat(&fga, (char_u *)", "); | 268 ga_concat(&fga, (char_u *)", "); |
269 ga_concat(&fga, (char_u *)"this."); | 269 ga_concat(&fga, (char_u *)"this."); |
270 objmember_T *m = cl->class_obj_members + i; | 270 objmember_T *m = cl->class_obj_members + i; |
271 ga_concat(&fga, (char_u *)m->om_name); | 271 ga_concat(&fga, (char_u *)m->om_name); |
272 ga_concat(&fga, (char_u *)" = v:none"); | |
272 } | 273 } |
273 ga_concat(&fga, (char_u *)")\nenddef\n"); | 274 ga_concat(&fga, (char_u *)")\nenddef\n"); |
274 ga_append(&fga, NUL); | 275 ga_append(&fga, NUL); |
275 | 276 |
276 exarg_T fea; | 277 exarg_T fea; |