| 1 | vlib/v/parser/tests/method_decl_on_non_local_map.vv:1:7: error: cannot define new methods on non-local type map[string]string. Define an alias and use that instead like `type AliasName = map[string]string` |
| 2 | 1 | fn (a map[string]string) get_number() int { |
| 3 | | ~~~~~~~~~~~~~~~~~ |
| 4 | 2 | return 1 |
| 5 | 3 | } |
| 6 |