From c754b4cc98253e1935d3ea5790bc60869c7bc091 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 25 Dec 2020 15:24:23 +0100 Subject: 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. --- src/vim9type.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vim9type.c') 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; } -- cgit v1.2.1