summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2023-01-07 13:07:11 +0000
committerBram Moolenaar <Bram@vim.org>2023-01-07 13:07:11 +0000
commit0cb3ca9f7a1b027973239bbea3d1a20dd1676a9c (patch)
treec2a519616baf7bb73b3f855552b5e97571cbdd10
parenteca2c5fff6f6ccad0df8824c4b4354d3f410d225 (diff)
patch 9.0.1156: tests fail because of a different error messagev9.0.1156
Problem: Tests fail because of a different error message. Solution: Don't give an error if a type name can't be found.
-rw-r--r--src/version.c2
-rw-r--r--src/vim9type.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/version.c b/src/version.c
index 57143ec9b8..f30cdfd750 100644
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1156,
+/**/
1155,
/**/
1154,
diff --git a/src/vim9type.c b/src/vim9type.c
index 1078861674..62d43635ca 100644
--- a/src/vim9type.c
+++ b/src/vim9type.c
@@ -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)
{