0
0
mirror of https://github.com/vim/vim.git synced 2025-09-30 04:44:14 -04:00

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.
This commit is contained in:
Bram Moolenaar
2020-05-10 19:10:31 +02:00
parent 89483d4043
commit 1cc2a94f80
8 changed files with 465 additions and 169 deletions

View File

@@ -644,9 +644,9 @@ func Test_expr6_fails()
call CheckDefFailure(["let x = #{one: 1} / #{two: 2}"], 'E1036:')
call CheckDefFailure(["let x = #{one: 1} % #{two: 2}"], 'E1035:')
call CheckDefFailure(["let x = 0xff[1]"], 'E714:')
call CheckDefFailure(["let x = 0xff[1]"], 'E1090:')
if has('float')
call CheckDefFailure(["let x = 0.7[1]"], 'E714:')
call CheckDefFailure(["let x = 0.7[1]"], 'E1090:')
endif
endfunc