comparison src/testdir/test_vim9_script.vim @ 20349:e29b2ec8d4d2 v8.2.0730

patch 8.2.0730: Vim9: Assignment to dict member does not work Commit: https://github.com/vim/vim/commit/1cc2a94f80ba982f83d1e2d37c4726867e36bd9f Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 10 19:10:31 2020 +0200 patch 8.2.0730: Vim9: Assignment to dict member does not work Problem: Vim9: Assignment to dict member does not work. Solution: Parse dict assignment. Implement getting dict member.
author Bram Moolenaar <Bram@vim.org>
date Sun, 10 May 2020 19:15:03 +0200
parents 0e1dfff4f294
children 680296770464
comparison
equal deleted inserted replaced
20348:25253a43acdf 20349:e29b2ec8d4d2
36 let dict4: dict<any> = #{one: 1, two: '2'} 36 let dict4: dict<any> = #{one: 1, two: '2'}
37 let dict5: dict<blob> = #{one: 0z01, tw: 0z02} 37 let dict5: dict<blob> = #{one: 0z01, tw: 0z02}
38 38
39 call CheckDefFailure(['let x:string'], 'E1069:') 39 call CheckDefFailure(['let x:string'], 'E1069:')
40 call CheckDefFailure(['let x:string = "x"'], 'E1069:') 40 call CheckDefFailure(['let x:string = "x"'], 'E1069:')
41 call CheckDefFailure(['let a:string = "x"'], 'E1082:') 41 call CheckDefFailure(['let a:string = "x"'], 'E1069:')
42 42
43 let a: number = 6 43 let a: number = 6
44 assert_equal(6, a) 44 assert_equal(6, a)
45 45
46 if has('channel') 46 if has('channel')