patch 8.1.0711: test files still use function!
Problem: Test files still use function!.
Solution: Remove the exclamation mark. Fix overwriting a function.
diff --git a/src/testdir/test49.vim b/src/testdir/test49.vim
index f50062e..0f825a2 100644
--- a/src/testdir/test49.vim
+++ b/src/testdir/test49.vim
@@ -1,6 +1,6 @@
" Vim script language tests
" Author: Servatius Brandt <Servatius.Brandt@fujitsu-siemens.com>
-" Last Change: 2016 Feb 07
+" Last Change: 2019 Jan 09
"-------------------------------------------------------------------------------
" Test environment {{{1
@@ -318,7 +318,7 @@
let ExtraVimBase = expand("<sfile>")
let ExtraVimTestEnv = ""
"
-function! ExtraVim(...)
+function ExtraVim(...)
" Count how often this function is called.
let g:ExtraVimCount = g:ExtraVimCount + 1
@@ -500,7 +500,7 @@
" an ExtraVim script as passed by ExtraVim() in ExtraVimBegin.
"
" EXTRA_VIM_START - do not change or remove this line.
-function! ExtraVimThrowpoint()
+function ExtraVimThrowpoint()
if !exists("g:ExtraVimBegin")
Xout "ExtraVimThrowpoint() used outside ExtraVim() script."
return v:throwpoint
@@ -530,7 +530,7 @@
" as a script file, use ExecAsScript below.
"
" EXTRA_VIM_START - do not change or remove this line.
-function! MakeScript(funcname, ...)
+function MakeScript(funcname, ...)
let script = tempname()
execute "redir! >" . script
execute "function" a:funcname
@@ -568,7 +568,7 @@
" location specified in the function.
"
" EXTRA_VIM_START - do not change or remove this line.
-function! ExecAsScript(funcname)
+function ExecAsScript(funcname)
" Make a script from the function passed as argument.
let script = MakeScript(a:funcname)
@@ -8548,7 +8548,7 @@
" Remove the autocommands for the events specified as arguments in all used
" autogroups.
-function! Delete_autocommands(...)
+function Delete_autocommands(...)
let augfile = tempname()
while 1
try