v2 / vlib / v / checker / tests / globals_run / global_nested_struct_test.vv
21 lines · 17 sloc · 161 bytes · 0c8ce3bcb9fd4a2e5bd5f991a5a07da976d780d7
Raw
1pub struct Foo {
2 val Bar
3}
4
5pub struct Bar {
6 number int
7}
8
9fn test_get() {
10}
11
12@[cinit]
13__global (
14 baz = Foo{Bar{
15 number: 5
16 }}
17)
18
19fn main() {
20 print(baz)
21}
22