Mercurial > vim
diff src/testdir/test_vim9_expr.vim @ 19451:b26e96f7c12f v8.2.0283
patch 8.2.0283: Vim9: failing to load script var not tested
Commit: https://github.com/vim/vim/commit/fd1823e0b783c31a5022c7a4d31c34d84ff0a744
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Feb 19 20:23:11 2020 +0100
patch 8.2.0283: Vim9: failing to load script var not tested
Problem: Vim9: failing to load script var not tested.
Solution: Add more tests. Fix using s: in old script.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 19 Feb 2020 20:30:04 +0100 |
parents | f8408ba21982 |
children | 08ef11a81daa |
line wrap: on
line diff
--- a/src/testdir/test_vim9_expr.vim +++ b/src/testdir/test_vim9_expr.vim @@ -726,6 +726,9 @@ func Test_expr7_fails() call CheckDefFailure("let x = ¬exist", 'E113:') call CheckDefExecFailure("&grepprg = [343]", 'E1051:') + + call CheckDefExecFailure("echo s:doesnt_exist", 'E121:') + call CheckDefExecFailure("echo g:doesnt_exist", 'E121:') endfunc let g:Funcrefs = [function('add')]