| 1 | vlib/v/checker/tests/map_with_result_value_err.vv:2:7: error: cannot use Result type as map value type |
| 2 | 1 | struct Foo { |
| 3 | 2 | map1 map[string]!string |
| 4 | | ~~~~~~~~~~~~~~~~~~ |
| 5 | 3 | } |
| 6 | 4 | |
| 7 | vlib/v/checker/tests/map_with_result_value_err.vv:6:7: error: cannot use Result type as map value type |
| 8 | 4 | |
| 9 | 5 | fn main() { |
| 10 | 6 | _ := map[string]!string{} |
| 11 | | ~~~~~~~~~~~~~~~~~~~~ |
| 12 | 7 | |
| 13 | 8 | dump(map[string]!string{}) |
| 14 | vlib/v/checker/tests/map_with_result_value_err.vv:8:7: error: cannot use Result type as map value type |
| 15 | 6 | _ := map[string]!string{} |
| 16 | 7 | |
| 17 | 8 | dump(map[string]!string{}) |
| 18 | | ~~~~~~~~~~~~~~~~~~~~ |
| 19 | 9 | } |
| 20 | |