v/vlib/v/tests/alias_fixed_array_of_struct...

10 lines
187 B
V

struct Foo {}
type Bar = [4]Foo
fn test_alias_fixed_array_of_struct() {
bar := Bar([Foo{}, Foo{}, Foo{}, Foo{}]!)
println(bar)
assert '$bar' == 'Bar([Foo{}, Foo{}, Foo{}, Foo{}])'
}