mirror of
https://github.com/vim/vim.git
synced 2025-11-14 23:04:02 -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:
committed by
Christian Brabandt
parent
b486ed8266
commit
3416cee36f
@@ -292,7 +292,7 @@ compile_lock_unlock(
|
||||
#ifdef LOG_LOCKVAR
|
||||
ch_log(NULL, "LKVAR: ... INS_LOCKUNLOCK %s", name);
|
||||
#endif
|
||||
if (compile_load(&name, name + len, cctx, FALSE, FALSE) == FAIL)
|
||||
if (compile_load(&name, len, name + len, cctx, FALSE, FALSE) == FAIL)
|
||||
return FAIL;
|
||||
isn = ISN_LOCKUNLOCK;
|
||||
}
|
||||
@@ -1130,7 +1130,8 @@ compile_for(char_u *arg_start, cctx_T *cctx)
|
||||
goto failed;
|
||||
}
|
||||
p = skipwhite(p + 1);
|
||||
lhs_type = parse_type(&p, cctx->ctx_type_list, TRUE);
|
||||
lhs_type = parse_type(&p, cctx->ctx_type_list, cctx->ctx_ufunc,
|
||||
cctx, TRUE);
|
||||
if (lhs_type == NULL)
|
||||
goto failed;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user