diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-04-06 19:01:03 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-04-06 19:01:03 +0200 |
commit | 86cdb8a4bd1abff40b5f80c3c4149b33cbaab990 (patch) | |
tree | a4043b082ff789af6fa8b79c5be70aca287a89f7 /src/testdir/test_vim9_func.vim | |
parent | e8c4660a55364a5d3e395652d1202b8702666823 (diff) |
patch 8.2.2726: confusing error message with white space before commav8.2.2726
Problem: Confusing error message with white space before comma in the
arguments of a function declaration.
Solution: Give a specific error message. (closes #2235)
Diffstat (limited to 'src/testdir/test_vim9_func.vim')
-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 8085e5cf22..730cf40aaa 100644 --- a/src/testdir/test_vim9_func.vim +++ b/src/testdir/test_vim9_func.vim @@ -1263,6 +1263,15 @@ def Test_arg_type_wrong() CheckScriptFailure(['def Func5(items)', 'echo "a"'], 'E1077:') enddef +def Test_white_space_before_comma() + var lines =<< trim END + vim9script + def Func(a: number , b: number) + enddef + END + CheckScriptFailure(lines, 'E1068:') +enddef + def Test_white_space_after_comma() var lines =<< trim END vim9script |