mirror of
https://github.com/vim/vim.git
synced 2025-10-04 05:25:06 -04:00
patch 8.2.1952: Vim9: crash when using a NULL dict key
Problem: Vim9: crash when using a NULL dict key. Solution: Use a NULL dict key like an empty string. (closes #7249)
This commit is contained in:
@@ -1902,6 +1902,8 @@ def Test_expr7_dict()
|
||||
var dictdict: dict<dict<string>> = #{one: #{a: 'text'}, two: #{}}
|
||||
dictdict = #{one: #{}, two: #{a: 'text'}}
|
||||
dictdict = #{one: #{}, two: #{}}
|
||||
|
||||
assert_equal({'': 0}, {matchstr('string', 'wont match'): 0})
|
||||
|
||||
CheckDefFailure(["var x = #{a:8}"], 'E1069:', 1)
|
||||
CheckDefFailure(["var x = #{a : 8}"], 'E1068:', 1)
|
||||
|
Reference in New Issue
Block a user