]> granicus.if.org Git - vim/commitdiff
patch 8.2.3786: test fails because of using Vim9 syntax in legacy function v8.2.3786
authorBram Moolenaar <Bram@vim.org>
Sat, 11 Dec 2021 18:46:29 +0000 (18:46 +0000)
committerBram Moolenaar <Bram@vim.org>
Sat, 11 Dec 2021 18:46:29 +0000 (18:46 +0000)
Problem:    Test fails because of using Vim9 syntax in legacy function.
Solution:   Add "call".

src/testdir/test_functions.vim
src/version.c

index 1fe56f34e8b89d009baede00c934e618567d3726..64e0bbcbc99101ecd90e8b14ee6c256a0346e910 100644 (file)
@@ -2239,7 +2239,7 @@ func Test_call()
       let Time = 'localtime'
       call Time()
   END
-  CheckScriptFailure(lines, 'E1085:')
+  call CheckScriptFailure(lines, 'E1085:')
 endfunc
 
 func Test_char2nr()
index 3ac31777ed6d811ee3ff16fda388366602186598..0150ddb1859f131e3ec1c416b2d14121cd92a07a 100644 (file)
@@ -753,6 +753,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3786,
 /**/
     3785,
 /**/