Mercurial > vim
diff src/testdir/test_vim9_func.vim @ 21602:7028f45bf0ea v8.2.1351
patch 8.2.1351: Vim9: no proper error if using namespace for nested function
Commit: https://github.com/vim/vim/commit/bcbf41395f93aabd577a17dc4fbabe523d0a7ce8
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 1 22:35:13 2020 +0200
patch 8.2.1351: Vim9: no proper error if using namespace for nested function
Problem: Vim9: no proper error if using namespace for nested function.
Solution: Specifically check for a namespace. (closes https://github.com/vim/vim/issues/6582)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 01 Aug 2020 22:45:03 +0200 |
parents | 9ade1da22402 |
children | d9c45474cac1 |
line wrap: on
line diff
--- a/src/testdir/test_vim9_func.vim +++ b/src/testdir/test_vim9_func.vim @@ -131,6 +131,8 @@ def Test_nested_function() CheckDefFailure(['def Nested(arg: string)', 'enddef', 'Nested()'], 'E119:') CheckDefFailure(['func Nested()', 'endfunc'], 'E1086:') + CheckDefFailure(['def s:Nested()', 'enddef'], 'E1075:') + CheckDefFailure(['def b:Nested()', 'enddef'], 'E1075:') enddef func Test_call_default_args_from_func()