view src/testdir/test_eval_func.vim @ 9153:c2fe86f2bda1 v7.4.1860

commit https://github.com/vim/vim/commit/e3188e261569ae512fb1ae2653b57fdd9e259ca3 Author: Bram Moolenaar <Bram@vim.org> Date: Tue May 31 21:13:04 2016 +0200 patch 7.4.1860 Problem: Using a partial for timer_start() may cause a crash. Solution: Set the copyID in timer objects. (Ozaki Kiichi)
author Christian Brabandt <cb@256bit.org>
date Tue, 31 May 2016 21:15:06 +0200
parents 1a5ed2626b26
children 63b02fcf1361
line wrap: on
line source

" Vim script used in test_eval.in.  Needed for script-local function.

func! s:Testje()
  return "foo"
endfunc
let Bar = function('s:Testje')
$put ='s:Testje exists: ' . exists('s:Testje')
$put ='func s:Testje exists: ' . exists('*s:Testje')
$put ='Bar exists: ' . exists('Bar')
$put ='func Bar exists: ' . exists('*Bar')