From: Bram Moolenaar Date: Thu, 12 Jan 2023 20:39:09 +0000 (+0000) Subject: patch 9.0.1187: test for using imported class fails X-Git-Tag: v9.0.1187 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3ce33b120c6479dfc8f22c7cc8945b9ef54285b0;p=vim 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 f702b36a3..ee42263c3 100644 --- a/src/version.c +++ b/src/version.c @@ -695,6 +695,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1187, /**/ 1186, /**/ diff --git a/src/vim9type.c b/src/vim9type.c index 9f95a8261..6fb6b2b25 100644 --- a/src/vim9type.c +++ b/src/vim9type.c @@ -1310,7 +1310,12 @@ parse_type(char_u **arg, garray_T *type_gap, int give_error) 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; } }