diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-08-11 22:30:42 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-08-11 22:30:42 +0200 |
commit | 035d6e91bd83574cab5a913c5c3a924d9011696b (patch) | |
tree | d6acfae2cbc2700a7c184c6dfffce34606e1c185 /src/testdir | |
parent | 097148e849136b49052b1b5123c714fb1d74db9b (diff) |
patch 8.2.1423: Vim9: find global function when looking for script-localv8.2.1423
Problem: Vim9: find global function when looking for script-local.
Solution: Don't strip prefix if name starts with "s:". (closes #6688)
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_vim9_func.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_func.vim b/src/testdir/test_vim9_func.vim index 4a020c9afa..772b52ab97 100644 --- a/src/testdir/test_vim9_func.vim +++ b/src/testdir/test_vim9_func.vim @@ -203,6 +203,15 @@ def Test_global_local_function() assert_equal('local', Func()) END CheckScriptSuccess(lines) + + lines =<< trim END + vim9script + def g:Funcy() + echo 'funcy' + enddef + s:Funcy() + END + CheckScriptFailure(lines, 'E117:') enddef func TakesOneArg(arg) |