]> granicus.if.org Git - vim/commitdiff
patch 9.0.1156: tests fail because of a different error message v9.0.1156
authorBram Moolenaar <Bram@vim.org>
Sat, 7 Jan 2023 13:07:11 +0000 (13:07 +0000)
committerBram Moolenaar <Bram@vim.org>
Sat, 7 Jan 2023 13:07:11 +0000 (13:07 +0000)
Problem:    Tests fail because of a different error message.
Solution:   Don't give an error if a type name can't be found.

src/version.c
src/vim9type.c

index 57143ec9b8d30f6b7d8d315ac010a61c51ba658e..f30cdfd750682e67dc28f1f9d4b5594440784048 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1156,
 /**/
     1155,
 /**/
index 1078861674eed6b486192a3282331d16c6b87f8c..62d43635ca16dcd3197cefe611feb264f7795119 100644 (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)
        {