comparison src/testdir/test_vim9_script.vim @ 21681:877321650f7f v8.2.1390

patch 8.2.1390: Vim9: type error after storing an option value Commit: https://github.com/vim/vim/commit/1c199f9c70446933677d5210f34d2b86eefa2a43 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 7 21:28:34 2020 +0200 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 https://github.com/vim/vim/issues/6632)
author Bram Moolenaar <Bram@vim.org>
date Fri, 07 Aug 2020 21:30:03 +0200
parents 84d38f98e5de
children bb4f55d20951
comparison
equal deleted inserted replaced
21680:943cdd108b70 21681:877321650f7f
420 420
421 [v1, v2; vrem] = ['one', 'two', 'three'] 421 [v1, v2; vrem] = ['one', 'two', 'three']
422 assert_equal('one', v1) 422 assert_equal('one', v1)
423 assert_equal('two', v2) 423 assert_equal('two', v2)
424 assert_equal(['three'], vrem) 424 assert_equal(['three'], vrem)
425
426 [&ts, &sw] = [3, 4]
427 assert_equal(3, &ts)
428 assert_equal(4, &sw)
429 set ts=8 sw=4
425 enddef 430 enddef
426 431
427 def Test_assignment_vim9script() 432 def Test_assignment_vim9script()
428 let lines =<< trim END 433 let lines =<< trim END
429 vim9script 434 vim9script