v2 / vlib / v / checker / tests / var_option_index_error.out
6 lines · 6 sloc · 278 bytes · 2879c5110c6dd4f38585e97baba8dce3101769fa
Raw
1vlib/v/checker/tests/var_option_index_error.vv:4:2: error: type `?map[string]string` is an Option, it must be unwrapped first; use `var?[]` to do it
2 2 | mut var4 := ?map[string]string{}
3 3 | var4?['a'] = 'b'
4 4 | var4['b'] = 'c'
5 | ~~~~
6 5 | }
7