Mercurial > vim
diff src/testdir/test_vim9_func.vim @ 27472:55613f0d59bc v8.2.4264
patch 8.2.4264: Vim9: can use old style autoload function name
Commit: https://github.com/vim/vim/commit/d8fe6d34bb582438142d7c1f73d0bd8537bb3a7a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 30 18:40:44 2022 +0000
patch 8.2.4264: Vim9: can use old style autoload function name
Problem: Vim9: can use old style autoload function name.
Solution: Give an error for old style autoload function name.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 30 Jan 2022 19:45:03 +0100 |
parents | a14c4d3e3260 |
children | 7898c7847293 |
line wrap: on
line diff
--- a/src/testdir/test_vim9_func.vim +++ b/src/testdir/test_vim9_func.vim @@ -46,7 +46,7 @@ def TestCompilingErrorInTry() var lines =<< trim END vim9script - def script#OnlyCompiled() + export def OnlyCompiled() g:runtime = 'yes' invalid enddef @@ -114,7 +114,7 @@ def Test_autoload_name_mismatch() var lines =<< trim END vim9script - def scriptX#Function() + export def NoFunction() # comment g:runtime = 'yes' enddef @@ -126,7 +126,7 @@ def Test_autoload_name_mismatch() lines =<< trim END call script#Function() END - v9.CheckScriptFailure(lines, 'E746:', 2) + v9.CheckScriptFailure(lines, 'E117:', 1) &rtp = save_rtp delete(dir, 'rf')