Patch 8.2.2750
Problem:    Vim9: error for using underscore in nested function.
Solution:   Do not consider "_" already defined. (closes #8096)
Files:      src/vim9compile.c, src/testdir/test_vim9_func.vim


*** ../vim-8.2.2749/src/vim9compile.c   2021-04-10 17:17:33.431942839 +0200
--- src/vim9compile.c   2021-04-10 20:56:13.826628416 +0200
***************
*** 422,427 ****
--- 422,431 ----
      int               c = p[len];
      ufunc_T   *ufunc = NULL;
  
+     // underscore argument is OK
+     if (len == 1 && *p == '_')
+       return OK;
+ 
      if (script_var_exists(p, len, cctx) == OK)
      {
        if (is_arg)
*** ../vim-8.2.2749/src/testdir/test_vim9_func.vim      2021-04-10 
20:10:14.644409608 +0200
--- src/testdir/test_vim9_func.vim      2021-04-10 20:59:13.593993748 +0200
***************
*** 2637,2642 ****
--- 2637,2644 ----
          return _
        endfunc
        assert_equal('too', Oktoo())
+ 
+       assert_equal([[1], [2], [3]], range(3)->mapnew((_, v) => [v]->map((_, 
w) => w + 1)))
    END
    CheckScriptSuccess(lines)
  
*** ../vim-8.2.2749/src/version.c       2021-04-10 20:52:39.991416717 +0200
--- src/version.c       2021-04-10 20:59:57.717840967 +0200
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     2750,
  /**/

-- 
>From "know your smileys":
 ...---...   SOS

 /// 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/202104101902.13AJ24M5274870%40masaka.moolenaar.net.

Raspunde prin e-mail lui