summaryrefslogtreecommitdiff
path: root/src/vim9type.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-12-25 15:24:23 +0100
committerBram Moolenaar <Bram@vim.org>2020-12-25 15:24:23 +0100
commitc754b4cc98253e1935d3ea5790bc60869c7bc091 (patch)
tree53fd5fec3b9c4e849d552473c7bceaf033add07f /src/vim9type.c
parentb2f9e0e2c537bcde16dab3b62687a17e17849ce1 (diff)
downloadvim-git-c754b4cc98253e1935d3ea5790bc60869c7bc091.tar.gz
patch 8.2.2212: Vim9: lambda with => does not work at the script levelv8.2.2212
Problem: Vim9: lambda with => does not work at the script level. Solution: Make it work.
Diffstat (limited to 'src/vim9type.c')
-rw-r--r--src/vim9type.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vim9type.c b/src/vim9type.c
index 7d8df695f..6ea362cb7 100644
--- a/src/vim9type.c
+++ b/src/vim9type.c
@@ -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;
}