comparison src/testdir/test_vim9_cmd.vim @ 28934:a712ea475390 v8.2.4989

patch 8.2.4989: cannot specify a function name for :defcompile Commit: https://github.com/vim/vim/commit/f79d9dd43f6fe05711d7e2616ab4b8bde2ccb089 Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 21 15:39:02 2022 +0100 patch 8.2.4989: cannot specify a function name for :defcompile Problem: Cannot specify a function name for :defcompile. Solution: Implement a function name argument for :defcompile.
author Bram Moolenaar <Bram@vim.org>
date Sat, 21 May 2022 16:45:03 +0200
parents 228154db3ce6
children 691c8adef6f3
comparison
equal deleted inserted replaced
28933:57c9377b9c62 28934:a712ea475390
80 vim9script 80 vim9script
81 legacy echo version 81 legacy echo version
82 END 82 END
83 v9.CheckScriptSuccess(lines) 83 v9.CheckScriptSuccess(lines)
84 enddef 84 enddef
85
86 def Test_defcompile_fails()
87 assert_fails('defcompile NotExists', 'E1061:')
88 assert_fails('defcompile debug debug Test_defcompile_fails', 'E488:')
89 assert_fails('defcompile profile profile Test_defcompile_fails', 'E488:')
90 enddef
91
92 defcompile Test_defcompile_fails
93 defcompile debug Test_defcompile_fails
94 defcompile profile Test_defcompile_fails
85 95
86 def Test_cmdmod_execute() 96 def Test_cmdmod_execute()
87 # "legacy" applies not only to the "exe" argument but also to the commands 97 # "legacy" applies not only to the "exe" argument but also to the commands
88 var lines =<< trim END 98 var lines =<< trim END
89 vim9script 99 vim9script