diff options
Diffstat (limited to 'v_windows/v/vlib/v/fmt/tests/maps_in_fn_args__keep.vv')
-rw-r--r-- | v_windows/v/vlib/v/fmt/tests/maps_in_fn_args__keep.vv | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/v_windows/v/vlib/v/fmt/tests/maps_in_fn_args__keep.vv b/v_windows/v/vlib/v/fmt/tests/maps_in_fn_args__keep.vv new file mode 100644 index 0000000..5968438 --- /dev/null +++ b/v_windows/v/vlib/v/fmt/tests/maps_in_fn_args__keep.vv @@ -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 +} |