summaryrefslogtreecommitdiff
path: root/src/testdir/test_vim9_func.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-04-27 22:47:51 +0200
committerBram Moolenaar <Bram@vim.org>2020-04-27 22:47:51 +0200
commit4c17ad94ecb0a0fb26d6fface2614bc5172dea18 (patch)
tree3b26b172e38be6c1d762c58d7517ac79e21e0a0f /src/testdir/test_vim9_func.vim
parentdb93495d276642f63f80471fbcb900b9aa1e9e42 (diff)
downloadvim-git-4c17ad94ecb0a0fb26d6fface2614bc5172dea18.tar.gz
patch 8.2.0650: Vim9: script function can be deletedv8.2.0650
Problem: Vim9: script function can be deleted. Solution: Disallow deleting script function. Delete functions when sourcing a script again.
Diffstat (limited to 'src/testdir/test_vim9_func.vim')
-rw-r--r--src/testdir/test_vim9_func.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testdir/test_vim9_func.vim b/src/testdir/test_vim9_func.vim
index f3721ba9f..2ee91f1ab 100644
--- a/src/testdir/test_vim9_func.vim
+++ b/src/testdir/test_vim9_func.vim
@@ -353,7 +353,7 @@ endfunc
def Test_delfunc()
let lines =<< trim END
vim9script
- def GoneSoon()
+ def g:GoneSoon()
echo 'hello'
enddef
@@ -361,7 +361,7 @@ def Test_delfunc()
GoneSoon()
enddef
- delfunc GoneSoon
+ delfunc g:GoneSoon
CallGoneSoon()
END
writefile(lines, 'XToDelFunc')