diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-20 21:32:54 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-20 21:32:54 +0000 |
commit | dd5893be34649482ed62525430fb8baa1ec273ce (patch) | |
tree | b53ae04f33ac4c243c48a4650947d0792aa91c6c /src/testdir | |
parent | e615db06046312e74886fa1ef98feb5a9db2a7c3 (diff) | |
download | vim-git-dd5893be34649482ed62525430fb8baa1ec273ce.tar.gz |
patch 8.2.4167: Vim9: error message for old style importv8.2.4167
Problem: Vim9: error message for old style import.
Solution: Use another error message. Add a test.
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_vim9_import.vim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_import.vim b/src/testdir/test_vim9_import.vim index b15d411c8..bacba2e8b 100644 --- a/src/testdir/test_vim9_import.vim +++ b/src/testdir/test_vim9_import.vim @@ -429,6 +429,19 @@ def Test_import_fails() var that = foo END CheckScriptFailure(lines, 'E1060: Expected dot after name: foo') + lines =<< trim END + vim9script + import './Xfoo.vim' as foo + var that: any + that += foo + END + CheckScriptFailure(lines, 'E1060: Expected dot after name: foo') + lines =<< trim END + vim9script + import './Xfoo.vim' as foo + foo += 9 + END + CheckScriptFailure(lines, 'E1060: Expected dot after name: foo') lines =<< trim END vim9script |