vxx2 / vlib / v / checker / tests / map_with_none_err.vv
15 lines · 13 sloc · 134 bytes · 0c8ce3bcb9fd4a2e5bd5f991a5a07da976d780d7
Raw
1fn main() {
2 mut a := {
3 'bar': none
4 }
5
6 mut b := {
7 'foo': 1
8 'bar': none
9 }
10
11 mut c := {
12 'foo': ?int(none)
13 'bar': none
14 }
15}
16