| 1 | vlib/v/checker/tests/match_generic_case_err.vv:16:4: error: return type mismatch, it should be `int`, but it is instead `string` |
| 2 | 14 | } |
| 3 | 15 | 'int' { |
| 4 | 16 | v |
| 5 | | ^ |
| 6 | 17 | } |
| 7 | 18 | else { |
| 8 | vlib/v/checker/tests/match_generic_case_err.vv:13:17: error: cannot use `int` as `string` in argument 1 to `strconv.atoi` |
| 9 | 11 | return match typeof(v).name { |
| 10 | 12 | 'string' { |
| 11 | 13 | strconv.atoi(v) or { 0 } |
| 12 | | ^ |
| 13 | 14 | } |
| 14 | 15 | 'int' { |
| 15 |