1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/v/parser/tests/struct_update_err.vv

18 lines
143 B
V

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