view src/testdir/test_eval_func.vim @ 19129:d7664581988e v8.2.0124

patch 8.2.0124: compiler warnings for variable types Commit: https://github.com/vim/vim/commit/109ef128bd6efc8e1fb91a2a51357fcb19897698 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 17 19:12:03 2020 +0100 patch 8.2.0124: compiler warnings for variable types Problem: Compiler warnings for variable types. Solution: Change type, add type cast. (Mike Williams)
author Bram Moolenaar <Bram@vim.org>
date Fri, 17 Jan 2020 19:15:04 +0100
parents 63b02fcf1361
children
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')