mirror of
https://github.com/vim/vim.git
synced 2025-11-16 23:24:03 -05:00
patch 9.1.0286: Vim9: E1027 with defcompile for abstract methods
Problem: Vim9: E1027 with defcompile for abstract methods with
non-void return types, but still compiles it
(zzzyxwvut)
Solution: Don't compile abstract methods
(Yegappan Lakshmanan)
fixes: #14443
closes: #14447
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
78c51500f1
commit
1af0fbf955
@@ -3723,7 +3723,9 @@ defcompile_class(class_T *cl)
|
||||
{
|
||||
ufunc_T *ufunc = loop == 1 ? cl->class_class_functions[i]
|
||||
: cl->class_obj_methods[i];
|
||||
defcompile_function(ufunc, cl);
|
||||
// Don't compile abstract methods
|
||||
if (!IS_ABSTRACT_METHOD(ufunc))
|
||||
defcompile_function(ufunc, cl);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user