0
0
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:
Bram Moolenaar
2020-12-25 15:24:23 +01:00
parent b2f9e0e2c5
commit c754b4cc98
6 changed files with 56 additions and 16 deletions

View File

@@ -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;
}