mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 9.0.2084: Vim9: abstract static methods are possible
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>
This commit is contained in:
committed by
Christian Brabandt
parent
1858e2b22a
commit
ef9e3f8924
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user