v2 / vlib / v / checker / tests / option_map_err.out
12 lines · 12 sloc · 510 bytes · 9ea3ea38e12fc2818e703e5af50efbd2a85c78bb
Raw
1vlib/v/checker/tests/option_map_err.vv:22:13: error: type `?map[string]f64` is an Option, it must be unwrapped first; use `op2.opmap?` to do it
2 20 | }
3 21 | }
4 22 | assert op2.opmap['1'] == 1.0
5 | ~~~~~
6 23 | }
7vlib/v/checker/tests/option_map_err.vv:22:13: error: field `opmap` is an Option, so it should have either an `or {}` block, or `?` at the end
8 20 | }
9 21 | }
10 22 | assert op2.opmap['1'] == 1.0
11 | ~~~~~
12 23 | }
13