vfmt: add maps_in_fn_args__keep.vv test for 3a369f5
parent
3a369f513c
commit
a43b8b5c96
|
@ -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
|
||||
}
|
Loading…
Reference in New Issue