Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v2
/
vlib
/
v
/
tests
/
concurrency
/
shared_struct_field_test.v
13
lines
·
11
sloc
·
136 bytes
·
6488041a749df9762348d019c4223908c476f2e2
Raw
1
module
main
2
3
struct
StructA {
4
ints shared []int = [0]
5
}
6
7
fn
test_main() {
8
a := StructA{}
9
rlock a.ints {
10
dump(a)
11
assert
true
12
}
13
}
14