Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v2
/
vlib
/
v
/
checker
/
tests
/
globals_run
/
global_nested_struct_test.vv
21
lines
·
17
sloc
·
161 bytes
·
0c8ce3bcb9fd4a2e5bd5f991a5a07da976d780d7
Raw
1
pub struct Foo {
2
val Bar
3
}
4
5
pub struct Bar {
6
number int
7
}
8
9
fn test_get() {
10
}
11
12
@[cinit]
13
__global (
14
baz = Foo{Bar{
15
number: 5
16
}}
17
)
18
19
fn main() {
20
print(baz)
21
}
22