Patch 8.2.4265 (after 8.2.4264)
Problem:    Autoload tests fails.
Solution:   Use export instead of name with #.
Files:      src/testdir/sautest/autoload/auto9.vim,
            src/testdir/test_autoload.vim src/testdir/test_ins_complete.vim


*** ../vim-8.2.4264/src/testdir/sautest/autoload/auto9.vim      2020-07-29 
21:10:42.037708767 +0100
--- src/testdir/sautest/autoload/auto9.vim      2022-01-30 18:51:27.677586105 
+0000
***************
*** 1,9 ****
  vim9script
  
! func auto9#getsome()
    return 'some'
  endfunc
  
! def auto9#add42(count: number): number
    return count + 42
  enddef
--- 1,9 ----
  vim9script
  
! export func Getsome()
    return 'some'
  endfunc
  
! export def Add42(count: number): number
    return count + 42
  enddef
*** ../vim-8.2.4264/src/testdir/test_autoload.vim       2022-01-21 
10:32:53.948494252 +0000
--- src/testdir/test_autoload.vim       2022-01-30 18:51:34.693481316 +0000
***************
*** 22,29 ****
  endfunc
  
  func Test_autoload_vim9script()
!   call assert_equal('some', auto9#getsome())
!   call assert_equal(49, auto9#add42(7))
  endfunc
  
  
--- 22,29 ----
  endfunc
  
  func Test_autoload_vim9script()
!   call assert_equal('some', auto9#Getsome())
!   call assert_equal(49, auto9#Add42(7))
  endfunc
  
  
*** ../vim-8.2.4264/src/testdir/test_ins_complete.vim   2022-01-30 
15:28:26.646294975 +0000
--- src/testdir/test_ins_complete.vim   2022-01-30 18:54:16.175256556 +0000
***************
*** 148,154 ****
  
    let lines =<< trim END
        vim9script
!       def omni#func(findstart: bool, base: string): any
            if findstart
                return 1
            else
--- 148,154 ----
  
    let lines =<< trim END
        vim9script
!       export def Func(findstart: bool, base: string): any
            if findstart
                return 1
            else
***************
*** 162,168 ****
    call writefile(lines, dir .. '/omni.vim')
  
    new
!   setlocal omnifunc=omni#func
    call feedkeys("i\<C-X>\<C-O>\<Esc>", 'xt')
  
    bwipe!
--- 162,168 ----
    call writefile(lines, dir .. '/omni.vim')
  
    new
!   setlocal omnifunc=omni#Func
    call feedkeys("i\<C-X>\<C-O>\<Esc>", 'xt')
  
    bwipe!
*** ../vim-8.2.4264/src/version.c       2022-01-30 18:40:40.539255759 +0000
--- src/version.c       2022-01-30 18:55:01.294666909 +0000
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     4265,
  /**/

-- 
OLD WOMAN: Well, how did you become king, then?
ARTHUR: The Lady of the Lake, her arm clad in the purest shimmering samite,
        held Excalibur aloft from the bosom of the water to signify by Divine
        Providence ...  that I, Arthur, was to carry Excalibur ...  That is
        why I am your king!
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- b...@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    ///

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220130185708.EF4F21C1918%40moolenaar.net.

Raspunde prin e-mail lui