Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Jan 12, 2025
1 parent 6cb9552 commit 63ea595
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions vlib/v/tests/structs/struct_field_shared_test.v
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
struct Foo {
bar struct {
foo int
bar int
}
baz shared int
}

fn test_main() {
assert Foo{}.str() == 'Foo{
bar: struct {
foo: 0
bar: 0
}
baz: 0
}'
}

0 comments on commit 63ea595

Please sign in to comment.