# HG changeset patch # User Bram Moolenaar # Date 1673556304 -3600 # Node ID 50241d494268571f84d2d8ad5d54ea56e5eefa4c # Parent 93f30cb659bc809f9b35efd0a006397ad84ca4cf patch 9.0.1187: test for using imported class fails Commit: https://github.com/vim/vim/commit/3ce33b120c6479dfc8f22c7cc8945b9ef54285b0 Author: Bram Moolenaar Date: Thu Jan 12 20:39:09 2023 +0000 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 --- 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 */ /**/ + 1187, +/**/ 1186, /**/ 1185, diff --git a/src/vim9type.c b/src/vim9type.c --- a/src/vim9type.c +++ b/src/vim9type.c @@ -1310,7 +1310,12 @@ parse_type(char_u **arg, garray_T *type_ 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; } }