0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.1390: Vim9: type error after storing an option value

Problem:    Vim9: type error after storing an option value.
Solution:   Drop the type after a STOREOPT instruction. (closes #6632)
This commit is contained in:
Bram Moolenaar
2020-08-07 21:28:34 +02:00
parent 74d95b5b58
commit 1c199f9c70
3 changed files with 8 additions and 1 deletions

View File

@@ -422,6 +422,11 @@ def Test_assignment_var_list()
assert_equal('one', v1)
assert_equal('two', v2)
assert_equal(['three'], vrem)
[&ts, &sw] = [3, 4]
assert_equal(3, &ts)
assert_equal(4, &sw)
set ts=8 sw=4
enddef
def Test_assignment_vim9script()