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 -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202106121651.15CGpZNH366416%40masaka.moolenaar.net.

Raspunde prin e-mail lui