1
0
forked from aniani/vim

patch 8.2.3376: Vim9: no warning that "@r" does not do anything

Problem:    Vim9: no warning that "@r" does not do anything.
Solution:   Give a "no effect" error. (closes #8779)
This commit is contained in:
Bram Moolenaar
2021-08-25 22:37:36 +02:00
parent df9070e300
commit 4799cef85c
5 changed files with 32 additions and 15 deletions

View File

@@ -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()