diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2023-11-02 20:43:57 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2023-11-02 20:43:57 +0100 |
commit | ef9e3f8924363939ff45fa385f50f57146ff365c (patch) | |
tree | 754b8f9aac9f3629de4e1f47a4975e4f56bbe311 /src/vim9class.c | |
parent | 1858e2b22ad168b1fd44a4efcd3a2b6cd9f6772d (diff) |
patch 9.0.2084: Vim9: abstract static methods are possiblev9.0.2084
Problem: Vim9: abstract static methods are possible
Solution: Disallow abstract static methods
fixes: #13462
closes: #13466
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/vim9class.c')
-rw-r--r-- | src/vim9class.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vim9class.c b/src/vim9class.c index 436b2a8a9d..ede310b457 100644 --- a/src/vim9class.c +++ b/src/vim9class.c @@ -1571,9 +1571,9 @@ early_ret: abstract_method = TRUE; p = skipwhite(pa + 8); - if (STRNCMP(p, "def", 3) != 0 && STRNCMP(p, "static", 6) != 0) + if (STRNCMP(p, "def", 3) != 0) { - emsg(_(e_abstract_must_be_followed_by_def_or_static)); + emsg(_(e_abstract_must_be_followed_by_def)); break; } } |