From 1585b6dc94be23cda47cdeac939c2c74a8bd4c37 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 21:06:16 +0200 Subject: Merging upstream version 2:9.1.0377. Signed-off-by: Daniel Baumann --- src/vim9class.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/vim9class.c') 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) -- cgit v1.2.3