v/vlib/v/fmt/tests/struct_update_keep.vv

18 lines
143 B
V

struct Foo {
name string
age int
}
struct Foo2 {}
fn main() {
f := Foo{
name: 'test'
age: 18
}
f2 := Foo{
...f
name: 'f2'
}
}