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

fmt: fix error of generic struct_init using module (fix #12893) (#12935)

This commit is contained in:
yuyi
2021-12-23 01:11:09 +08:00
committed by GitHub
parent 86719c5de9
commit 1028f0b59e
7 changed files with 19 additions and 8 deletions

View File

@ -24,7 +24,7 @@ pub interface JS.Response {
pub fn fetch(input string, init map[string]JS.Any) promise.Promise<JS.Response, JS.String> {
p_init := JS.Any(voidptr(0))
p := promise.Promise<JS.Response,String>{p_init}
p := promise.Promise<JS.Response, String>{p_init}
#let obj = {}; for (let [key,val] of init.map) { obj[key] = val; }
#p.promise = fetch(input.str,obj);