diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 19:06:15 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 19:06:15 +0000 |
commit | 45e7de1c4f501ef5d3b6f08126a2ad82ccb07533 (patch) | |
tree | b5039a1ec7ad36b69e101b52645040b88a2e929b /src/vim9class.c | |
parent | Adding upstream version 2:9.1.0374. (diff) | |
download | vim-45e7de1c4f501ef5d3b6f08126a2ad82ccb07533.tar.xz vim-45e7de1c4f501ef5d3b6f08126a2ad82ccb07533.zip |
Adding upstream version 2:9.1.0377.upstream/2%9.1.0377
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/vim9class.c')
-rw-r--r-- | src/vim9class.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vim9class.c b/src/vim9class.c index 52c2f76..4314b52 100644 --- a/src/vim9class.c +++ b/src/vim9class.c @@ -136,6 +136,13 @@ parse_member( fill_evalarg_from_eap(&evalarg, eap, FALSE); (void)skip_expr_concatenate(&init_arg, &expr_start, &expr_end, &evalarg); + init_arg = skipwhite(init_arg); + if (*init_arg != NUL) + { + semsg(_(e_trailing_characters_str), init_arg); + return FAIL; + } + // No type specified for the member. Set it to "any" and the correct // type will be set when the object is instantiated. if (type == NULL) |