Skip to content

Commit

Permalink
patch 9.0.1187: test for using imported class fails
Browse files Browse the repository at this point in the history
Problem:    Test for using imported class fails.
Solution:   Skip over rest of type.
  • Loading branch information
brammool committed Jan 12, 2023
1 parent 4059400 commit 3ce33b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -695,6 +695,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1187,
/**/
1186,
/**/
Expand Down
5 changes: 5 additions & 0 deletions src/vim9type.c
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 3ce33b1

Please sign in to comment.