0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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)
This commit is contained in:
Bram Moolenaar
2021-01-07 19:23:08 +01:00
parent ebbf11c119
commit 328eac2b5d
5 changed files with 16 additions and 4 deletions

View File

@@ -668,7 +668,7 @@ get_lambda_tv(
goto errret;
}
else
fp->uf_ret_type = &t_unknown;
fp->uf_ret_type = &t_any;
}
fp->uf_lines = newlines;