v2 / vlib / v / fmt / tests / struct_default_field_expressions_keep.vv
14 lines · 12 sloc · 210 bytes · ddb6685d8a0cb498b5031c644f16d05ac3121ced
Raw
1struct Foo {
2 i int = 1 // A comment
3}
4
5struct Bar {
6 f Foo = &Foo(0)
7 z int = -1 @[skip]
8}
9
10struct Baz {
11 x int = 1 // It's one
12 y string = 'one' // It's one written out
13 z bool = true // Also one
14}
15