0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 9.0.1885: Vim9: no support for abstract methods

Problem:  Vim9: no support for abstract methods
Solution: Add support for defining abstract methods in an abstract class

closes: #13044
closes: #13046

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
Yegappan Lakshmanan
2023-09-08 19:27:51 +02:00
committed by Christian Brabandt
parent 86cfb39030
commit 7bcd25cad3
9 changed files with 275 additions and 15 deletions

View File

@@ -5021,6 +5021,7 @@ define_function(
// Do not define the function when getting the body fails and when
// skipping.
if (((class_flags & CF_INTERFACE) == 0
&& (class_flags & CF_ABSTRACT_METHOD) == 0
&& get_function_body(eap, &newlines, line_arg, lines_to_free)
== FAIL)
|| eap->skip)