mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.2212: Vim9: lambda with => does not work at the script level
Problem: Vim9: lambda with => does not work at the script level. Solution: Make it work.
This commit is contained in:
@@ -338,6 +338,8 @@ typval2type_int(typval_T *tv, garray_T *type_gap)
|
||||
if (ufunc->uf_def_status == UF_TO_BE_COMPILED
|
||||
&& compile_def_function(ufunc, TRUE, NULL) == FAIL)
|
||||
return NULL;
|
||||
if (ufunc->uf_func_type == NULL)
|
||||
set_function_type(ufunc);
|
||||
if (ufunc->uf_func_type != NULL)
|
||||
return ufunc->uf_func_type;
|
||||
}
|
||||
|
Reference in New Issue
Block a user