1
0
forked from aniani/vim

patch 9.1.1279: Vim9: null_object and null_class are no reserved names

Problem:  Vim9: null_object and null_class are no reserved names
Solution: Add null_object and null_class as reserved names.
          (Yegappan Lakshmanan)

closes: #17054

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Yegappan Lakshmanan
2025-04-05 16:00:22 +02:00
committed by Christian Brabandt
parent d22f43111b
commit 8daae6fea9
5 changed files with 43 additions and 19 deletions

View File

@@ -326,6 +326,8 @@ def Test_reserved_name()
'null_list',
'null_partial',
'null_string',
'null_object',
'null_class',
] + more_names
v9.CheckDefExecAndScriptFailure(['var ' .. name .. ' = 0'], 'E1034:')
v9.CheckDefExecAndScriptFailure(['var ' .. name .. ': bool'], 'E1034:')