1
0
forked from aniani/vim

patch 9.0.1156: tests fail because of a different error message

Problem:    Tests fail because of a different error message.
Solution:   Don't give an error if a type name can't be found.
This commit is contained in:
Bram Moolenaar
2023-01-07 13:07:11 +00:00
parent eca2c5fff6
commit 0cb3ca9f7a
2 changed files with 3 additions and 2 deletions

View File

@@ -1275,8 +1275,7 @@ parse_type(char_u **arg, garray_T *type_gap, int give_error)
// It can be a class or interface name.
typval_T tv;
tv.v_type = VAR_UNKNOWN;
if (eval_variable(*arg, len, 0, &tv, NULL,
EVAL_VAR_VERBOSE + EVAL_VAR_IMPORT) == OK)
if (eval_variable(*arg, len, 0, &tv, NULL, EVAL_VAR_IMPORT) == OK)
{
if (tv.v_type == VAR_CLASS && tv.vval.v_class != NULL)
{