Mercurial > vim
diff src/testdir/test_vim9_builtin.vim @ 24222:a2e6029d354e v8.2.2652
patch 8.2.2652: Vim9: can use command modifier without an effect
Commit: https://github.com/vim/vim/commit/fa984418e7becd8e7d6543cd3ea25f605e9ac97f
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 25 22:15:28 2021 +0100
patch 8.2.2652: Vim9: can use command modifier without an effect
Problem: Vim9: can use command modifier without an effect.
Solution: Give an error for a misplaced command modifier. Fix error message
number.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 25 Mar 2021 22:30:04 +0100 |
parents | 083f07f99e20 |
children | 35603c7991d7 |
line wrap: on
line diff
--- a/src/testdir/test_vim9_builtin.vim +++ b/src/testdir/test_vim9_builtin.vim @@ -247,7 +247,7 @@ enddef def Test_exepath() CheckDefExecFailure(['echo exepath(true)'], 'E1174:') CheckDefExecFailure(['echo exepath(v:null)'], 'E1174:') - CheckDefExecFailure(['echo exepath("")'], 'E1142:') + CheckDefExecFailure(['echo exepath("")'], 'E1175:') enddef def Test_expand() @@ -406,13 +406,13 @@ enddef def Test_finddir() CheckDefExecFailure(['echo finddir(true)'], 'E1174:') CheckDefExecFailure(['echo finddir(v:null)'], 'E1174:') - CheckDefExecFailure(['echo finddir("")'], 'E1142:') + CheckDefExecFailure(['echo finddir("")'], 'E1175:') enddef def Test_findfile() CheckDefExecFailure(['echo findfile(true)'], 'E1174:') CheckDefExecFailure(['echo findfile(v:null)'], 'E1174:') - CheckDefExecFailure(['echo findfile("")'], 'E1142:') + CheckDefExecFailure(['echo findfile("")'], 'E1175:') enddef def Test_flattennew()