diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-08-25 22:37:36 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-08-25 22:37:36 +0200 |
commit | 4799cef85ce43e26f5022290b41a7c85bbab8cad (patch) | |
tree | 89dc1cbf035efacf2f6091eb3396dc44d51857de /src/testdir/test_vim9_cmd.vim | |
parent | df9070e300dabf0c54de87a75973a80adb38afa3 (diff) |
patch 8.2.3376: Vim9: no warning that "@r" does not do anythingv8.2.3376
Problem: Vim9: no warning that "@r" does not do anything.
Solution: Give a "no effect" error. (closes #8779)
Diffstat (limited to 'src/testdir/test_vim9_cmd.vim')
-rw-r--r-- | src/testdir/test_vim9_cmd.vim | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/testdir/test_vim9_cmd.vim b/src/testdir/test_vim9_cmd.vim index 128575b955..93b1295d4c 100644 --- a/src/testdir/test_vim9_cmd.vim +++ b/src/testdir/test_vim9_cmd.vim @@ -537,7 +537,7 @@ def Test_option_use_linebreak() CheckDefAndScriptSuccess(lines) enddef -def Test_register_use_linebreak() +def Test_use_register() var lines =<< trim END new @a = 'one' @@ -551,6 +551,12 @@ def Test_register_use_linebreak() bwipe! END CheckDefAndScriptSuccess(lines) + + lines =<< trim END + @a = 'echo "text"' + @a + END + CheckDefAndScriptFailure(lines, 'E1207:') enddef def Test_environment_use_linebreak() |