v2 / vlib / v / tests / options / option_map_val_test.v
6 lines · 6 sloc · 95 bytes · 214628a939d744768e5bba9b49699ea81a8d3f83
Raw
1fn test_main() {
2 mut m := map[int]?u32{}
3 if c := m[0] {
4 println('c: ${c} not none!')
5 }
6}
7