vfmt: add maps_in_fn_args__keep.vv test for 3a369f5

pull/5331/head
Delyan Angelov 2020-06-10 17:15:35 +03:00
parent 3a369f513c
commit a43b8b5c96
1 changed files with 15 additions and 0 deletions

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
}