v4 / vlib / v / checker / tests / json_decode_shared_err.vv
8 lines · 7 sloc · 99 bytes · 598673314b602fe7fc9f7c656eae563deec0debd
Raw
1import json
2
3fn main() {
4 shared data := [1, 2, 3]
5 rlock data {
6 println(json.encode(data))
7 }
8}
9