mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
vim-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 vim/vim#9310)
2ef9156b42
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -2019,6 +2019,12 @@ func Test_call()
|
||||
" call assert_fails('call test_null_function()()', 'E1192:')
|
||||
" Nvim doesn't have null partials
|
||||
" 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()
|
||||
|
||||
Reference in New Issue
Block a user