diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-08-23 19:34:48 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-08-23 19:34:48 +0200 |
commit | 2e80095501238e0c6b702ac7cdfa2e2b763dba28 (patch) | |
tree | b4768ed6a42285874dff041b2e18d1e22d9bbd98 /src/testdir/vim9.vim | |
parent | 6c53fca02301ff871cddc1c74c388e23e53a424a (diff) | |
download | vim-git-2e80095501238e0c6b702ac7cdfa2e2b763dba28.tar.gz |
patch 8.2.1518: Vim9: cannot assign to local optionv8.2.1518
Problem: Vim9: cannot assign to local option.
Solution: Skip over "&l:" and "&g:". (closes #6749)
Diffstat (limited to 'src/testdir/vim9.vim')
-rw-r--r-- | src/testdir/vim9.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/vim9.vim b/src/testdir/vim9.vim index 2f92cf954..7fbe4a5ed 100644 --- a/src/testdir/vim9.vim +++ b/src/testdir/vim9.vim @@ -41,6 +41,11 @@ def CheckScriptSuccess(lines: list<string>) delete('Xdef') enddef +def CheckDefAndScriptSuccess(lines: list<string>) + CheckDefSuccess(lines) + CheckScriptSuccess(['vim9script'] + lines) +enddef + " Check that a command fails both when used in a :def function and when used " in Vim9 script. def CheckScriptAndDefFailure(lines: list<string>, error: string, lnum = -3) |