comparison src/vim9type.c @ 31710:50241d494268 v9.0.1187

patch 9.0.1187: test for using imported class fails Commit: https://github.com/vim/vim/commit/3ce33b120c6479dfc8f22c7cc8945b9ef54285b0 Author: Bram Moolenaar <Bram@vim.org> 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.
author Bram Moolenaar <Bram@vim.org>
date Thu, 12 Jan 2023 21:45:04 +0100
parents 824fc05d9571
children 22a4824d7964
comparison
equal deleted inserted replaced
31709:93f30cb659bc 31710:50241d494268
1308 // Although the name is that of a class or interface, the type 1308 // Although the name is that of a class or interface, the type
1309 // uses will be an object. 1309 // uses will be an object.
1310 type->tt_type = VAR_OBJECT; 1310 type->tt_type = VAR_OBJECT;
1311 type->tt_member = (type_T *)tv.vval.v_class; 1311 type->tt_member = (type_T *)tv.vval.v_class;
1312 clear_tv(&tv); 1312 clear_tv(&tv);
1313
1313 *arg += len; 1314 *arg += len;
1315 // Skip over ".ClassName".
1316 while (ASCII_ISALNUM(**arg) || **arg == '_' || **arg == '.')
1317 ++*arg;
1318
1314 return type; 1319 return type;
1315 } 1320 }
1316 } 1321 }
1317 1322
1318 clear_tv(&tv); 1323 clear_tv(&tv);