commit | 328eac2b5d1569c57e1130ecb9f7cca733b84d78 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu Jan 07 19:23:08 2021 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Jan 07 19:23:08 2021 +0100 |
tree | 5905788ba7946b3fc27ec5275ee2a33196f5c91f | |
parent | ebbf11c1198b7aec8a1a55f7231ecb4f1a432fa0 [diff] [blame] |
patch 8.2.2308: Vim9: no error when assigning lambda to funcref Problem: Vim9: no error when assigning lambda to funcref without return value. Solution: Default return value to "any". (closes #7629)
diff --git a/src/userfunc.c b/src/userfunc.c index 4c59bb5..814d400 100644 --- a/src/userfunc.c +++ b/src/userfunc.c
@@ -668,7 +668,7 @@ goto errret; } else - fp->uf_ret_type = &t_unknown; + fp->uf_ret_type = &t_any; } fp->uf_lines = newlines;