Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
15405:3a8785d45112 | 15406:63b02fcf1361 |
---|---|
1 " Vim script used in test_eval.in. Needed for script-local function. | 1 " Vim script used in test_eval.in. Needed for script-local function. |
2 | 2 |
3 func! s:Testje() | 3 func s:Testje() |
4 return "foo" | 4 return "foo" |
5 endfunc | 5 endfunc |
6 let Bar = function('s:Testje') | 6 let Bar = function('s:Testje') |
7 $put ='s:Testje exists: ' . exists('s:Testje') | 7 $put ='s:Testje exists: ' . exists('s:Testje') |
8 $put ='func s:Testje exists: ' . exists('*s:Testje') | 8 $put ='func s:Testje exists: ' . exists('*s:Testje') |