mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
18 lines
143 B
V
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
|
|
}
|
|
}
|