Patch 8.2.2984 (after 8.2.2983)
Problem: Vim9: Test fails because of missing return statement.
Solution: When type is unknown set type to void.
Files: src/vim9compile.c
*** ../vim-8.2.2983/src/vim9compile.c 2021-06-12 15:58:12.482675579 +0200
--- src/vim9compile.c 2021-06-12 18:28:06.911373489 +0200
***************
*** 9596,9602 ****
if (!cctx.ctx_had_return)
{
! if (ufunc->uf_ret_type->tt_type != VAR_VOID)
{
emsg(_(e_missing_return_statement));
goto erret;
--- 9596,9604 ----
if (!cctx.ctx_had_return)
{
! if (ufunc->uf_ret_type->tt_type == VAR_UNKNOWN)
! ufunc->uf_ret_type = &t_void;
! else if (ufunc->uf_ret_type->tt_type != VAR_VOID)
{
emsg(_(e_missing_return_statement));
goto erret;
*** ../vim-8.2.2983/src/version.c 2021-06-12 15:58:12.486675568 +0200
--- src/version.c 2021-06-12 18:30:36.219004528 +0200
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2984,
/**/
--
Mrs Abbott: I'm a paediatrician.
Basil: Feet?
Mrs Abbott: Children.
Sybil: Oh, Basil!
Basil: Well, children have feet, don't they? That's how they move
around, my dear. You must take a look next time, it's most
interesting. (Fawlty Towers)
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///