diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-05-21 15:39:02 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-05-21 15:39:02 +0100 |
commit | f79d9dd43f6fe05711d7e2616ab4b8bde2ccb089 (patch) | |
tree | cf41b3c62e71e9fca5ddc61636465ab5e05283a9 /src/testdir/test_vim9_cmd.vim | |
parent | 2d8ed0203aedd5f6c22efa99394a3677c17c7a7a (diff) |
patch 8.2.4989: cannot specify a function name for :defcompilev8.2.4989
Problem: Cannot specify a function name for :defcompile.
Solution: Implement a function name argument for :defcompile.
Diffstat (limited to 'src/testdir/test_vim9_cmd.vim')
-rw-r--r-- | src/testdir/test_vim9_cmd.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_cmd.vim b/src/testdir/test_vim9_cmd.vim index 77e1d8a069..7db8e50c8e 100644 --- a/src/testdir/test_vim9_cmd.vim +++ b/src/testdir/test_vim9_cmd.vim @@ -83,6 +83,16 @@ def Test_vim9cmd() v9.CheckScriptSuccess(lines) enddef +def Test_defcompile_fails() + assert_fails('defcompile NotExists', 'E1061:') + assert_fails('defcompile debug debug Test_defcompile_fails', 'E488:') + assert_fails('defcompile profile profile Test_defcompile_fails', 'E488:') +enddef + +defcompile Test_defcompile_fails +defcompile debug Test_defcompile_fails +defcompile profile Test_defcompile_fails + def Test_cmdmod_execute() # "legacy" applies not only to the "exe" argument but also to the commands var lines =<< trim END |