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

vfmt: add maps_in_fn_args__keep.vv test for 3a369f5

This commit is contained in:
Delyan Angelov 2020-06-10 17:15:35 +03:00
parent 3a369f513c
commit a43b8b5c96

View File

@ -0,0 +1,15 @@
import v.ast
fn abc_xxx(xobj ast.ScopeObject) {
}
fn abc_map(xmap map[string]ast.ScopeObject) {
}
fn (t Tree) objects(so map[string]ast.ScopeObject) &C.cJSON {
obj := create_object()
for key, val in so {
to_object(obj, key, t.scope_object(val))
}
return obj
}