patch 9.0.1187: test for using imported class fails
Problem: Test for using imported class fails.
Solution: Skip over rest of type.
diff --git a/src/version.c b/src/version.c
index f702b36..ee42263 100644
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1187,
+/**/
1186,
/**/
1185,
diff --git a/src/vim9type.c b/src/vim9type.c
index 9f95a82..6fb6b2b 100644
--- a/src/vim9type.c
+++ b/src/vim9type.c
@@ -1310,7 +1310,12 @@
type->tt_type = VAR_OBJECT;
type->tt_member = (type_T *)tv.vval.v_class;
clear_tv(&tv);
+
*arg += len;
+ // Skip over ".ClassName".
+ while (ASCII_ISALNUM(**arg) || **arg == '_' || **arg == '.')
+ ++*arg;
+
return type;
}
}