mirror of
https://github.com/vim/vim.git
synced 2025-10-05 05:34:07 -04:00
patch 8.2.2173: Vim9: get internal error when assigning to undefined variable
Problem: Vim9: get internal error when assigning to undefined variable. Solution: Add error message. (closes #7475)
This commit is contained in:
@@ -710,5 +710,16 @@ def Test_ambiguous_user_cmd()
|
||||
CheckScriptFailure(lines, 'E464:')
|
||||
enddef
|
||||
|
||||
def Test_command_not_recognized()
|
||||
var lines =<< trim END
|
||||
d.key = 'asdf'
|
||||
END
|
||||
CheckDefFailure(lines, 'E1146:', 1)
|
||||
|
||||
lines =<< trim END
|
||||
d['key'] = 'asdf'
|
||||
END
|
||||
CheckDefFailure(lines, 'E1146:', 1)
|
||||
enddef
|
||||
|
||||
" vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker
|
||||
|
Reference in New Issue
Block a user