v/vlib/v/checker/tests/array_init_sum_type_without...

10 lines
113 B
V

type Foo = int | string
fn main() {
a := []Foo{len: 10}
println(a)
fixed_a := [10]Foo{}
println(fixed_a)
}