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

checker: check fntype mismatch of struct field init (fix #16372) (#16381)

This commit is contained in:
yuyi
2022-11-11 02:19:19 +08:00
committed by GitHub
parent 196b01aef7
commit 993e21e85b
10 changed files with 35 additions and 9 deletions

View File

@@ -10,7 +10,7 @@ struct Story {
url string
}
fn worker_fetch(p &pool.PoolProcessor, cursor int, worker_id int) voidptr {
fn worker_fetch(mut p pool.PoolProcessor, cursor int, worker_id int) voidptr {
id := p.get_item<int>(cursor)
resp := http.get('https://hacker-news.firebaseio.com/v0/item/${id}.json') or {
println('failed to fetch data from /v0/item/${id}.json')