annotate src/testdir/test_eval_func.vim @ 15406:63b02fcf1361 v8.1.0711

patch 8.1.0711: test files still use function! commit https://github.com/vim/vim/commit/1e1153600c0377472d62cc553173fe555ddcf5a7 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jan 9 23:01:02 2019 +0100 patch 8.1.0711: test files still use function! Problem: Test files still use function!. Solution: Remove the exclamation mark. Fix overwriting a function.
author Bram Moolenaar <Bram@vim.org>
date Wed, 09 Jan 2019 23:15:05 +0100
parents 1a5ed2626b26
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5850
1a5ed2626b26 updated for version 7.4.268
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 " Vim script used in test_eval.in. Needed for script-local function.
1a5ed2626b26 updated for version 7.4.268
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2
15406
63b02fcf1361 patch 8.1.0711: test files still use function!
Bram Moolenaar <Bram@vim.org>
parents: 5850
diff changeset
3 func s:Testje()
5850
1a5ed2626b26 updated for version 7.4.268
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 return "foo"
1a5ed2626b26 updated for version 7.4.268
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 endfunc
1a5ed2626b26 updated for version 7.4.268
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 let Bar = function('s:Testje')
1a5ed2626b26 updated for version 7.4.268
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 $put ='s:Testje exists: ' . exists('s:Testje')
1a5ed2626b26 updated for version 7.4.268
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 $put ='func s:Testje exists: ' . exists('*s:Testje')
1a5ed2626b26 updated for version 7.4.268
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 $put ='Bar exists: ' . exists('Bar')
1a5ed2626b26 updated for version 7.4.268
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 $put ='func Bar exists: ' . exists('*Bar')