vxx2 / vlib / v / checker / tests / lock_const.vv
9 lines · 8 sloc · 73 bytes · a741db43f388822bd078daa617d285ed6cf7766b
Raw
1const a = 5
2
3fn main() {
4 mut c := 0
5 rlock a {
6 c = a
7 }
8 println(c)
9}
10