diff src/testdir/test_functions.vim @ 26506:4a1d2abc2016 v8.2.3783

patch 8.2.3783: confusing error for using a variable as a function Commit: https://github.com/vim/vim/commit/2ef9156b4284e4a52613c36e3d4667245273a28d Author: Bram Moolenaar <Bram@vim.org> Date: Sat Dec 11 16:14:07 2021 +0000 patch 8.2.3783: confusing error for using a variable as a function Problem: Confusing error for using a variable as a function. Solution: If a function is not found but there is a variable, give a more useful error. (issue #9310)
author Bram Moolenaar <Bram@vim.org>
date Sat, 11 Dec 2021 17:15:03 +0100
parents cc95e10e1cf2
children a753cca75c69
line wrap: on
line diff
--- a/src/testdir/test_functions.vim
+++ b/src/testdir/test_functions.vim
@@ -2234,6 +2234,12 @@ func Test_call()
   call call(test_null_partial(), [])
   call assert_fails('call test_null_function()()', 'E1192:')
   call assert_fails('call test_null_partial()()', 'E117:')
+
+  let lines =<< trim END
+      let Time = 'localtime'
+      call Time()
+  END
+  CheckScriptFailure(lines, 'E1085:')
 endfunc
 
 func Test_char2nr()