Gitly
English
Русский
Español
日本語
中文
Português
Pricing
Log in
Register
vxx2
/
vlib
/
v
/
checker
/
tests
/
nested_struct_with_required_attr_err.vv
16
lines
·
13
sloc
·
129 bytes
·
0c8ce3bcb9fd4a2e5bd5f991a5a07da976d780d7
Raw
1
struct Foo {
2
bar Bar
3
}
4
5
struct Bar {
6
egg Egg
7
}
8
9
struct Egg {
10
name string @[required]
11
}
12
13
fn main() {
14
f := Foo{}
15
println(f)
16
}
17