mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
patch 9.1.0674: Vim9: compiling abstract method fails because of missing return
Problem: Vim9: compiling abstract method fails because of missing return (Aliaksei Budavei) Solution: don't require a return statement for an abstract method when compiling (Ernie Rael) fixes: #15432 closes: #15441 Signed-off-by: Ernie Rael <errael@raelity.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
ea76096fa9
commit
7477861e0d
@@ -4120,8 +4120,9 @@ compile_def_function(
|
||||
ufunc->uf_args_visible = ufunc->uf_args.ga_len;
|
||||
|
||||
// Compiling a function in an interface is done to get the function type.
|
||||
// No code is actually compiled.
|
||||
if (ufunc->uf_class != NULL && IS_INTERFACE(ufunc->uf_class))
|
||||
// No code is actually compiled. Same goes for an abstract method.
|
||||
if ((ufunc->uf_class != NULL && IS_INTERFACE(ufunc->uf_class))
|
||||
|| IS_ABSTRACT_METHOD(ufunc))
|
||||
{
|
||||
ufunc->uf_def_status = UF_NOT_COMPILED;
|
||||
ret = OK;
|
||||
|
Reference in New Issue
Block a user