1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: check incorrect names

This commit is contained in:
Enzo Baldisserri
2020-05-16 16:12:23 +02:00
committed by GitHub
parent 3bd88a3cc2
commit f44a40eee0
61 changed files with 636 additions and 597 deletions

View File

@@ -151,15 +151,13 @@ fn process_in_thread(pool mut PoolProcessor, task_id int) {
// return *(&T(pool.items[idx]))
//}
// TODO: the below is a hack, remove it when v2 &string() casting works again
type mystring string
// get_string_item - called by the worker callback.
// It does not use generics so it does not mess up vfmt.
// TODO: remove the need for this when vfmt becomes smarter.
pub fn (pool &PoolProcessor) get_string_item(idx int) string {
// return *(&string(pool.items[idx]))
// TODO: the below is a hack, remove it when v2 casting works again
return &mystring( pool.items[idx] )
return &string( pool.items[idx] )
}
// get_int_item - called by the worker callback.