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:
parent
3a369f513c
commit
a43b8b5c96
15
vlib/v/fmt/tests/maps_in_fn_args__keep.vv
Normal file
15
vlib/v/fmt/tests/maps_in_fn_args__keep.vv
Normal 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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user