0
0
mirror of https://github.com/vim/vim.git synced 2025-11-16 23:24:03 -05:00

patch 9.1.1577: Vim9: no generic support yet

Problem:  Vim9: no generic support yet
Solution: Add support for generic functions, funcrefs and object/class
          methods (Yegappan Lakshmanan).

closes: #17313

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Yegappan Lakshmanan
2025-07-21 21:36:08 +02:00
committed by Christian Brabandt
parent b486ed8266
commit 3416cee36f
35 changed files with 5905 additions and 161 deletions

View File

@@ -204,6 +204,7 @@ may_generate_2STRING(int offset, int tostring_flags, cctx_T *cctx)
RETURN_OK_IF_SKIP(cctx);
type = get_type_on_stack(cctx, -1 - offset);
switch (type->tt_type)
{
// nothing to be done
@@ -2125,6 +2126,7 @@ check_func_args_from_type(
return OK;
}
/*
* Generate an ISN_PCALL instruction.
* "type" is the type of the FuncRef.