diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-09-14 22:16:13 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-09-14 22:16:13 +0200 |
commit | 5582ef14384525e8cec86016876d97a6b32dd548 (patch) | |
tree | df821155d69edf17b04df6a131d25f7fd1f1a03e /src/testdir/test_expr.vim | |
parent | 789a5c0e3d27f09456678f0cfb6c1bd2d8ab4a35 (diff) | |
download | vim-git-5582ef14384525e8cec86016876d97a6b32dd548.tar.gz |
patch 8.0.0004v8.0.0004
Problem: A string argument for function() that is not a function name
results in an error message with NULL. (Christian Brabandt)
Solution: Use the argument for the error message.
Diffstat (limited to 'src/testdir/test_expr.vim')
-rw-r--r-- | src/testdir/test_expr.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testdir/test_expr.vim b/src/testdir/test_expr.vim index 108ee508e..dff8e36f4 100644 --- a/src/testdir/test_expr.vim +++ b/src/testdir/test_expr.vim @@ -439,6 +439,9 @@ func Test_function_with_funcref() let s:fref = function(s:f) call assert_equal(v:t_string, s:fref('x')) call assert_fails("call function('s:f')", 'E700:') + + call assert_fails("call function('foo()')", 'E475:') + call assert_fails("call function('foo()')", 'foo()') endfunc func Test_funcref() |