Mercurial > vim
diff src/testdir/test_vim9_expr.vim @ 19521:860b39ed0e0b v8.2.0318
patch 8.2.0318: Vim9: types not sufficiently tested
Commit: https://github.com/vim/vim/commit/0c2ca58ef06ac49d40330bbe1ee70c3d8af7a648
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Feb 25 22:58:29 2020 +0100
patch 8.2.0318: Vim9: types not sufficiently tested
Problem: Vim9: types not sufficiently tested.
Solution: Add tests with more types.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 25 Feb 2020 23:00:04 +0100 |
parents | a09636ecee3c |
children | 8eeec8886c02 |
line wrap: on
line diff
--- a/src/testdir/test_vim9_expr.vim +++ b/src/testdir/test_vim9_expr.vim @@ -861,4 +861,8 @@ func Test_expr_fails() call CheckDefExecFailure("CallMe ('yes')", 'E492:') call CheckDefFailure("CallMe2('yes','no')", 'E1069:') call CheckDefFailure("CallMe2('yes' , 'no')", 'E1068:') + + call CheckDefFailure("v:nosuch += 3", 'E1001:') + call CheckDefFailure("let v:version = 3", 'E1064:') + call CheckDefFailure("let asdf = v:nosuch", 'E1001:') endfunc